aboutsummaryrefslogtreecommitdiffstats
path: root/arch/ia64
diff options
context:
space:
mode:
authorRuss Anderson <(rja@sgi.com)>2005-08-15 17:46:00 -0400
committerTony Luck <tony.luck@intel.com>2005-08-26 18:01:37 -0400
commitd1e079b3fc90c7c114f46771e983a72ac8740882 (patch)
tree7c0bf2cdece65ae355977bf7aff3925fd20217ea /arch/ia64
parent8409668b561fbe464f7a392e8dc77eca225d27ac (diff)
[IA64-SGI] 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. Signed-off-by: Russ Anderson (rja@sgi.com) Signed-off-by: Tony Luck <tony.luck@intel.com>
Diffstat (limited to 'arch/ia64')
-rw-r--r--arch/ia64/sn/kernel/bte.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/ia64/sn/kernel/bte.c b/arch/ia64/sn/kernel/bte.c
index b75814efadba..45854c637e9c 100644
--- a/arch/ia64/sn/kernel/bte.c
+++ b/arch/ia64/sn/kernel/bte.c
@@ -105,7 +105,7 @@ bte_result_t bte_copy(u64 src, u64 dest, u64 len, u64 mode, void *notification)
105 /* 105 /*
106 * Start with interface corresponding to cpu number 106 * Start with interface corresponding to cpu number
107 */ 107 */
108 bte_first = get_cpu() % btes_per_node; 108 bte_first = raw_smp_processor_id() % btes_per_node;
109 109
110 if (mode & BTE_USE_DEST) { 110 if (mode & BTE_USE_DEST) {
111 /* try remote then local */ 111 /* try remote then local */