public inbox for linux-ia64@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] fix bte_copy() calling smp_processor_id() while preemptible
@ 2005-08-15 21:46 Russ Anderson
  0 siblings, 0 replies; only message in thread
From: Russ Anderson @ 2005-08-15 21:46 UTC (permalink / raw)
  To: linux-ia64

[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

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

only message in thread, other threads:[~2005-08-15 21:46 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-08-15 21:46 [PATCH] fix bte_copy() calling smp_processor_id() while preemptible Russ Anderson

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