From: Thomas Gleixner Date: Mon, 13 Oct 2008 17:15:23 +0000 (+0000) Subject: x86: improve UP kernel when CPU-hotplug and SMP is enabled X-Git-Tag: v2.6.27.2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f558a0f3f28dcdb969d56ce9bad1391d001c3b31;p=pandora-kernel.git x86: improve UP kernel when CPU-hotplug and SMP is enabled commit 649c6653fa94ec8f3ea32b19c97b790ec4e8e4ac upstream 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 Signed-off-by: Thomas Gleixner Signed-off-by: Ingo Molnar Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed