Patchwork Add options to disable SMP

login
register
about
Submitter Myles Watson
Date 2009-10-23 20:04:16
Message ID <2831fecf0910231304n66586c12jcd94b5d812446a9d@mail.gmail.com>
Download mbox | patch
Permalink /patch/466/
State Superseded
Headers show

Comments

Myles Watson - 2009-10-23 20:04:16
On Fri, Oct 23, 2009 at 1:52 PM, Myles Watson <mylesgw@gmail.com> wrote:

> Add options to the debugging menu to disable logical processors and SMP.
>
> They both depend on EXPERT, and MAX_CPUS depends on disabling logical
> processors so that no one tries to run a quad core CPU with only one stack.
>
> Signed-off-by: Myles Watson <mylesgw@gmail.com>
>

I decided that it makes more sense to directly change SMP, not MAX_CPUS.  I
made SMP depend on MAX_PHYSICAL_CPUS so that you are not prompted to disable
SMP unless you have multiple sockets.

Thanks,
Myles

Patch

Index: svn/src/Kconfig
===================================================================
--- svn.orig/src/Kconfig
+++ svn/src/Kconfig
@@ -404,6 +404,19 @@  config GDB_STUB
 	  If enabled, you will be able to set breakpoints for gdb debugging.
 	  See src/arch/i386/lib/c_start.S for details.
 
+config LOGICAL_CPUS
+	bool "Enable all cores on multicore CPUs"
+	depends on EXPERT
+	help
+	  This should always be y except if you are debugging race conditions.
+
+config SMP
+	bool "Enable SMP"
+	depends on EXPERT && MAX_PHYSICAL_CPUS != 1
+	depends on !LOGICAL_CPUS
+	help
+	  This should always be y except if you are debugging race conditions.
+
 endmenu
 
 config LIFT_BSP_APIC_ID