[PATCH] ppc64: enforce medium thread priority in hypervisor calls
Anton Blanchard
anton at samba.org
Fri Apr 29 23:54:46 EST 2005
Hi,
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 at samba.org>
Index: linux-2.6.12-rc2/arch/ppc64/kernel/pSeries_hvCall.S
===================================================================
--- linux-2.6.12-rc2.orig/arch/ppc64/kernel/pSeries_hvCall.S 2005-04-28 18:08:25.284495131 +1000
+++ linux-2.6.12-rc2/arch/ppc64/kernel/pSeries_hvCall.S 2005-04-28 18:13:06.195016349 +1000
@@ -28,6 +28,8 @@
unsigned long *out3); R10
*/
_GLOBAL(plpar_hcall)
+ HMT_MEDIUM
+
mfcr r0
std r8,STK_PARM(r8)(r1) /* Save out ptrs */
@@ -53,6 +55,8 @@
/* Simple interface with no output values (other than status) */
_GLOBAL(plpar_hcall_norets)
+ HMT_MEDIUM
+
mfcr r0
stw r0,8(r1)
@@ -75,6 +79,8 @@
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)
@@ -99,6 +105,8 @@
unsigned long *out4); 112(R1)
*/
_GLOBAL(plpar_hcall_4out)
+ HMT_MEDIUM
+
mfcr r0
stw r0,8(r1)
More information about the Linuxppc64-dev
mailing list