]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
memory hotplug: solve config broken: undefined reference to `online_page'
authorYasunori Goto <y-goto@jp.fujitsu.com>
Thu, 29 Jun 2006 09:24:27 +0000 (02:24 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 25 Jul 2006 03:35:20 +0000 (20:35 -0700)
Memory hotplug code of i386 adds memory to only highmem.  So, if
CONFIG_HIGHMEM is not set, CONFIG_MEMORY_HOTPLUG shouldn't be set.
Otherwise, it causes compile error.

In addition, many architecture can't use memory hotplug feature yet.  So, I
introduce CONFIG_ARCH_ENABLE_MEMORY_HOTPLUG.

Signed-off-by: Yasunori Goto <y-goto@jp.fujitsu.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/i386/Kconfig
arch/ia64/Kconfig
arch/powerpc/Kconfig
arch/x86_64/Kconfig
mm/Kconfig

index 8dfa3054f10fb0ce83576277f080caccf7644535..6ad514487a90463c1b5a202f5b6bdbbc67487cb9 100644 (file)
@@ -765,6 +765,9 @@ config HOTPLUG_CPU
 
 endmenu
 
+config ARCH_ENABLE_MEMORY_HOTPLUG
+       def_bool y
+       depends on HIGHMEM
 
 menu "Power management options (ACPI, APM)"
        depends on !X86_VOYAGER
index 0f3076a820c3af7dd7c71790be13e212354b3e1a..0c0cd0a79e86252c89a9e091c79587c777d6bff2 100644 (file)
@@ -270,6 +270,9 @@ config HOTPLUG_CPU
          can be controlled through /sys/devices/system/cpu/cpu#.
          Say N if you want to disable CPU hotplug.
 
+config ARCH_ENABLE_MEMORY_HOTPLUG
+       def_bool y
+
 config SCHED_SMT
        bool "SMT scheduler support"
        depends on SMP
index 6729c98b66f969fb16566bcc949039c776370a24..fbc2b7f8de1b1cb11a6f0b662e0dcc70c39c01e5 100644 (file)
@@ -599,6 +599,9 @@ config HOTPLUG_CPU
 
          Say N if you are unsure.
 
+config ARCH_ENABLE_MEMORY_HOTPLUG
+       def_bool y
+
 config KEXEC
        bool "kexec system call (EXPERIMENTAL)"
        depends on PPC_MULTIPLATFORM && EXPERIMENTAL
index 408d44a59756f8050c4455fdbb471eb9c9881f09..ce0c7977a0500e1713a8b07370ac2d671736ae50 100644 (file)
@@ -369,6 +369,8 @@ config HOTPLUG_CPU
                can be controlled through /sys/devices/system/cpu/cpu#.
                Say N if you want to disable CPU hotplug.
 
+config ARCH_ENABLE_MEMORY_HOTPLUG
+       def_bool y
 
 config HPET_TIMER
        bool
index 332f5c29b53a3c04665e4d727fc50dbfde609fb2..8b13ca3ebb582572e61339236a1f3c6c2f874edc 100644 (file)
@@ -115,7 +115,7 @@ config SPARSEMEM_EXTREME
 # eventually, we can have this option just 'select SPARSEMEM'
 config MEMORY_HOTPLUG
        bool "Allow for memory hot-add"
-       depends on SPARSEMEM && HOTPLUG && !SOFTWARE_SUSPEND
+       depends on SPARSEMEM && HOTPLUG && !SOFTWARE_SUSPEND && ARCH_ENABLE_MEMORY_HOTPLUG
 
 comment "Memory hotplug is currently incompatible with Software Suspend"
        depends on SPARSEMEM && HOTPLUG && SOFTWARE_SUSPEND