Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 125688
b: refs/heads/master
c: e0c0ba7
h: refs/heads/master
v: v3
  • Loading branch information
Rusty Russell committed Dec 31, 2008
1 parent 45be76b commit fbaa8d9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 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: ab53d472e785e51fdfc08fc1d66252c1153e6c0f
refs/heads/master: e0c0ba736547e81c4f986ce192307c549d214167
7 changes: 1 addition & 6 deletions trunk/init/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -380,12 +380,7 @@ EXPORT_SYMBOL(nr_cpu_ids);
/* An arch may set nr_cpu_ids earlier if needed, so this would be redundant */
static void __init setup_nr_cpu_ids(void)
{
int cpu, highest_cpu = 0;

for_each_possible_cpu(cpu)
highest_cpu = cpu;

nr_cpu_ids = highest_cpu + 1;
nr_cpu_ids = find_last_bit(cpumask_bits(cpu_possible_mask),NR_CPUS) + 1;
}

#ifndef CONFIG_HAVE_SETUP_PER_CPU_AREA
Expand Down

0 comments on commit fbaa8d9

Please sign in to comment.