diff options
author | Andi Kleen <ak@suse.de> | 2005-09-12 18:49:24 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-09-12 10:49:58 -0700 |
commit | e99b861a3e9ec93a48b985519e09b2515c201e8d (patch) | |
tree | 3a90eaa67081fdb460e4659709d0e686a49c5842 /arch/x86_64 | |
parent | 2b4a08150e0ce2f6eb5d0987fdfe3524ec799313 (diff) | |
download | op-kernel-dev-e99b861a3e9ec93a48b985519e09b2515c201e8d.zip op-kernel-dev-e99b861a3e9ec93a48b985519e09b2515c201e8d.tar.gz |
[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>
Diffstat (limited to 'arch/x86_64')
-rw-r--r-- | arch/x86_64/kernel/setup64.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86_64/kernel/setup64.c b/arch/x86_64/kernel/setup64.c index e8b54dc..bd33be2 100644 --- a/arch/x86_64/kernel/setup64.c +++ b/arch/x86_64/kernel/setup64.c @@ -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))) { |