Skip to content

Commit

Permalink
[PATCH] ppc64: enforce medium thread priority in hypervisor calls
Browse files Browse the repository at this point in the history
Calls into the hypervisor do not raise the thread priority.  Ensure we are
running at medium priority upon entry to the hypervisor.

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Anton Blanchard authored and Linus Torvalds committed May 1, 2005
1 parent c4005e4 commit eeb24de
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions arch/ppc64/kernel/pSeries_hvCall.S
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@
unsigned long *out3); R10
*/
_GLOBAL(plpar_hcall)
HMT_MEDIUM

mfcr r0

std r8,STK_PARM(r8)(r1) /* Save out ptrs */
Expand All @@ -53,6 +55,8 @@ _GLOBAL(plpar_hcall)

/* Simple interface with no output values (other than status) */
_GLOBAL(plpar_hcall_norets)
HMT_MEDIUM

mfcr r0
stw r0,8(r1)

Expand All @@ -75,6 +79,8 @@ _GLOBAL(plpar_hcall_norets)
unsigned long *out1); 120(R1)
*/
_GLOBAL(plpar_hcall_8arg_2ret)
HMT_MEDIUM

mfcr r0
ld r11,STK_PARM(r11)(r1) /* put arg8 in R11 */
stw r0,8(r1)
Expand All @@ -99,6 +105,8 @@ _GLOBAL(plpar_hcall_8arg_2ret)
unsigned long *out4); 112(R1)
*/
_GLOBAL(plpar_hcall_4out)
HMT_MEDIUM

mfcr r0
stw r0,8(r1)

Expand Down

0 comments on commit eeb24de

Please sign in to comment.