Skip to content

Commit

Permalink
[PATCH] x86-64: Only allocate per cpu data for possible CPUs, not com…
Browse files Browse the repository at this point in the history
…piled in CPUs.

Saves some memory except for hotplug situations.

Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Andi Kleen authored and Linus Torvalds committed Sep 12, 2005
1 parent 2b4a081 commit e99b861
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/x86_64/kernel/setup64.c
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ void __init setup_per_cpu_areas(void)
size = PERCPU_ENOUGH_ROOM;
#endif

for (i = 0; i < NR_CPUS; i++) {
for_each_cpu_mask (i, cpu_possible_map) {
char *ptr;

if (!NODE_DATA(cpu_to_node(i))) {
Expand Down

0 comments on commit e99b861

Please sign in to comment.