diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2008-10-05 16:52:24 +0200 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-10-13 10:33:46 +0200 |
commit | 649c6653fa94ec8f3ea32b19c97b790ec4e8e4ac (patch) | |
tree | a6c3c0f48147ebcd9eca8d5e0e188f36477705e9 /arch/.gitignore | |
parent | 8a541665b9063c5006b370d4488cf9f6beb6083f (diff) |
x86: improve UP kernel when CPU-hotplug and SMP is enabled
num_possible_cpus() can be > 1 when disabled CPUs have been accounted.
Disabled CPUs are not in the cpu_present_map, so we can use
num_present_cpus() as a safe indicator to switch to UP alternatives.
Reported-by: Chuck Ebbert <cebbert@redhat.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: <stable@kernel.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/.gitignore')
0 files changed, 0 insertions, 0 deletions