]> git.baikalelectronics.ru Git - kernel.git/commit
x86/vsmp: Fix number of CPUs when vsmp is disabled
authorShai Fultheim <shai@scalemp.com>
Mon, 16 Apr 2012 07:39:35 +0000 (10:39 +0300)
committerIngo Molnar <mingo@kernel.org>
Mon, 14 May 2012 12:42:33 +0000 (14:42 +0200)
commit9ec08f8e7d4f8abbb190049f083aa3215afe0e75
treedb906a57cfa3824b8d3f6dcf39a10113076853e7
parent4c3511933f57f02e9df7912cc5468f80d9c1385b
x86/vsmp: Fix number of CPUs when vsmp is disabled

In case CONFIG_X86_VSMP is not set, limit the number of CPUs to
the number of CPUs of the first board.

Also make CONFIG_X86_VSMP depend on CONFIG_SMP, as there's
little point in having a vsmp machine with a single CPU.

Signed-off-by: Shai Fultheim <shai@scalemp.com>
[ido@wizery.com: rebased, fixed minor coding-style issues]
Signed-off-by: Ido Yariv <ido@wizery.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/Kconfig
arch/x86/kernel/vsmp_64.c