From: Bjorn Helgaas <bjorn.helgaas@hp.com>
To: linux-ia64@vger.kernel.org
Subject: [PATCH] Prevent SAL calls from being preempted
Date: Thu, 18 Dec 2003 20:30:22 +0000 [thread overview]
Message-ID: <marc-linux-ia64-107177977525156@msgid-missing> (raw)
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)
reply other threads:[~2003-12-18 20:30 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=marc-linux-ia64-107177977525156@msgid-missing \
--to=bjorn.helgaas@hp.com \
--cc=linux-ia64@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.