[PATCH] Prevent SAL calls from being preempted

From: Bjorn Helgaas <bjorn.helgaas_at_hp.com>
Date: 2003-12-19 07:30:22
ia64: Prevent SAL calls from being preempted.

(SAL_CALL_REENTRANT): Disable preemption around the SAL call to
	make sure we don't get rescheduled on a different CPU.

===== include/asm-ia64/sal.h 1.19 vs edited =====
--- 1.19/include/asm-ia64/sal.h	Sat Aug 16 18:31:13 2003
+++ edited/include/asm-ia64/sal.h	Wed Dec 10 14:10:04 2003
@@ -71,7 +71,9 @@
 # define SAL_CALL_REENTRANT(result,args...) do {	\
 	struct ia64_fpreg __ia64_scs_fr[6];		\
 	ia64_save_scratch_fpregs(__ia64_scs_fr);	\
+	preempt_disable();				\
 	__SAL_CALL(result, args);			\
+	preempt_enable();				\
 	ia64_load_scratch_fpregs(__ia64_scs_fr);	\
 } while (0)
 

-
To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Received on Thu Dec 18 15:36:15 2003

This archive was generated by hypermail 2.1.8 : 2005-08-02 09:20:21 EST