Patchwork Add options to disable SMP

login
register
about
Submitter Myles Watson
Date 2009-10-23 19:52:10
Message ID <2831fecf0910231252u42a5eb8fh9d06fdea05a955c@mail.gmail.com>
Download mbox | patch
Permalink /patch/465/
State Superseded
Headers show

Comments

Myles Watson - 2009-10-23 19:52:10
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>

Thanks,
Myles

Patch

Index: svn/src/Kconfig
===================================================================
--- svn.orig/src/Kconfig
+++ svn/src/Kconfig
@@ -404,6 +404,17 @@  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 cores other than 0 for multicore CPUs"
+	depends on EXPERT
+	help
+	  This should always be y except if you are debugging race conditions.
+
+config MAX_CPUS
+	int "Maximum CPUs: Set to 0 to disable SMP"
+	depends on EXPERT
+	depends on !LOGICAL_CPUS
+
 endmenu
 
 config LIFT_BSP_APIC_ID