From: Russ Anderson <rja@efs.americas.sgi.com>
To: linux-ia64@vger.kernel.org
Subject: [PATCH] fix bte_copy() calling smp_processor_id() while preemptible
Date: Mon, 15 Aug 2005 21:46:18 +0000 [thread overview]
Message-ID: <200508152146.j7FLkIRa2014013@efs.americas.sgi.com> (raw)
[PATCH] fix bte_copy() calling smp_processor_id() while preemptible
bte_copy() calls calls smp_processor_id(), which will get flagged if
preemption if enabled. raw_smp_processor_id() is used instead
because we are just using it to pick a BTE interface and are not
tied to a specific cpu.
This patch applied on top of Jack Steiner's shub2 patches.
Signed-off-by: Russ Anderson (rja@sgi.com)
--------------------------------------------------------------
arch/ia64/sn/kernel/bte.c | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
Index: test-2.6/arch/ia64/sn/kernel/bte.c
=================================--- test-2.6.orig/arch/ia64/sn/kernel/bte.c 2005-08-15 14:46:12.429921262 -0500
+++ test-2.6/arch/ia64/sn/kernel/bte.c 2005-08-15 16:04:05.655539040 -0500
@@ -105,7 +105,7 @@ bte_result_t bte_copy(u64 src, u64 dest,
/*
* Start with interface corresponding to cpu number
*/
- bte_first = get_cpu() % btes_per_node;
+ bte_first = raw_smp_processor_id() % btes_per_node;
if (mode & BTE_USE_DEST) {
/* try remote then local */
--
Russ Anderson, OS RAS/Partitioning Project Lead
SGI - Silicon Graphics Inc rja@sgi.com
reply other threads:[~2005-08-15 21:46 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=200508152146.j7FLkIRa2014013@efs.americas.sgi.com \
--to=rja@efs.americas.sgi.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox