[PATCH] x86-64: Only allocate per cpu data for possible CPUs, not compiled 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>
This commit is contained in:
committed by
Linus Torvalds
parent
2b4a08150e
commit
e99b861a3e
@@ -94,7 +94,7 @@ void __init setup_per_cpu_areas(void)
|
|||||||
size = PERCPU_ENOUGH_ROOM;
|
size = PERCPU_ENOUGH_ROOM;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
for (i = 0; i < NR_CPUS; i++) {
|
for_each_cpu_mask (i, cpu_possible_map) {
|
||||||
char *ptr;
|
char *ptr;
|
||||||
|
|
||||||
if (!NODE_DATA(cpu_to_node(i))) {
|
if (!NODE_DATA(cpu_to_node(i))) {
|
||||||
|
Reference in New Issue
Block a user