public inbox for linux-ia64@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Prevent SAL calls from being preempted
@ 2003-12-18 20:30 Bjorn Helgaas
  0 siblings, 0 replies; only message in thread
From: Bjorn Helgaas @ 2003-12-18 20:30 UTC (permalink / raw)
  To: linux-ia64

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)
 


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-12-18 20:30 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-12-18 20:30 [PATCH] Prevent SAL calls from being preempted Bjorn Helgaas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox