aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRusty Russell <[email protected]>2009-03-18 08:22:30 +1030
committerIngo Molnar <[email protected]>2009-03-18 09:47:54 +0100
commit2c74d66624ddbda8101d54d1e184cf9229b378bc (patch)
tree418c4c5a764b904d63efe3d92c2720ec20d2cf29
parent0ca0f16fd17c5d880dd0abbe03595b0c7c5b3c95 (diff)
x86, uv: fix cpumask iterator in uv_bau_init()
Impact: fix boot crash on UV systems Commit 76ba0ecda0de9accea9a91cb6dbde46782110e1c "cpumask: use cpumask_var_t in uv_flush_tlb_others" used cur_cpu as an iterator; it was supposed to be zero for the code below it. Reported-by: Cliff Wickman <[email protected]> Original-From: Cliff Wickman <[email protected]> Signed-off-by: Rusty Russell <[email protected]> Acked-by: Mike Travis <[email protected]> Cc: [email protected] Cc: <[email protected]> LKML-Reference: <[email protected]> Signed-off-by: Ingo Molnar <[email protected]>
-rw-r--r--arch/x86/kernel/tlb_uv.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/x86/kernel/tlb_uv.c b/arch/x86/kernel/tlb_uv.c
index d038b9c45cf8..79c073247284 100644
--- a/arch/x86/kernel/tlb_uv.c
+++ b/arch/x86/kernel/tlb_uv.c
@@ -750,7 +750,7 @@ static int __init uv_bau_init(void)
int node;
int nblades;
int last_blade;
- int cur_cpu = 0;
+ int cur_cpu;
if (!is_uv_system())
return 0;
@@ -760,6 +760,7 @@ static int __init uv_bau_init(void)
uv_mmask = (1UL << uv_hub_info->n_val) - 1;
nblades = 0;
last_blade = -1;
+ cur_cpu = 0;
for_each_online_node(node) {
blade = uv_node_to_blade_id(node);
if (blade == last_blade)