Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 23998
b: refs/heads/master
c: 7d3aee9
h: refs/heads/master
v: v3
  • Loading branch information
David S. Miller committed Mar 25, 2006
1 parent 7af7472 commit 5eb9eb6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 3cbb90a9cb7854b1110663919d5bc3da3f46d5e3
refs/heads/master: 7d3aee9a9686ffc235c343dcab85c3ebea78908a
5 changes: 4 additions & 1 deletion trunk/arch/sparc64/kernel/smp.c
Original file line number Diff line number Diff line change
Expand Up @@ -1298,6 +1298,7 @@ void __init smp_prepare_cpus(unsigned int max_cpus)
while (!cpu_find_by_instance(instance, NULL, &mid)) {
if (mid != boot_cpu_id) {
cpu_clear(mid, phys_cpu_present_map);
cpu_clear(mid, cpu_present_map);
if (num_possible_cpus() <= max_cpus)
break;
}
Expand Down Expand Up @@ -1332,8 +1333,10 @@ void __init smp_setup_cpu_possible_map(void)

instance = 0;
while (!cpu_find_by_instance(instance, NULL, &mid)) {
if (mid < NR_CPUS)
if (mid < NR_CPUS) {
cpu_set(mid, phys_cpu_present_map);
cpu_set(mid, cpu_present_map);
}
instance++;
}
}
Expand Down

0 comments on commit 5eb9eb6

Please sign in to comment.