1
linux/arch/sh
KAMEZAWA Hiroyuki 48e94196a5 fix memory hot remove not configured case.
Now, arch dependent code around CONFIG_MEMORY_HOTREMOVE is a mess.
This patch cleans up them. This is against 2.6.23-rc6-mm1.

 - fix compile failure on ia64/ CONFIG_MEMORY_HOTPLUG && !CONFIG_MEMORY_HOTREMOVE case.
 - For !CONFIG_MEMORY_HOTREMOVE, add generic no-op remove_memory(),
   which returns -EINVAL.
 - removed remove_pages() only used in powerpc.
 - removed no-op remove_memory() in i386, sh, sparc64, x86_64.

 - only powerpc returns -ENOSYS at memory hot remove(no-op). changes it
   to return -EINVAL.

Note:
Currently, only ia64 supports CONFIG_MEMORY_HOTREMOVE. I welcome other
archs if there are requirements and testers.

Signed-off-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-10-16 09:43:02 -07:00
..
boards sh: allow building for both r2d boards in same binary. 2007-10-10 18:04:42 +09:00
boot sh: arch/sh/boot - fix shell usage 2007-07-26 17:43:41 +09:00
cchips sh: cleanup struct irqaction initializers. 2007-10-03 15:04:08 +09:00
configs sh: Initial SH-X3 SMP support. 2007-09-21 19:16:05 +09:00
drivers sh: Revert incorrect license string changes. 2007-09-24 17:49:51 +09:00
kernel Consolidate PTRACE_DETACH 2007-10-16 09:42:49 -07:00
lib sh: Revert __xdiv64_32 size change. 2007-07-13 12:27:13 +09:00
math-emu sh: Fix up the math-emu build. 2007-06-11 15:57:42 +09:00
mm fix memory hot remove not configured case. 2007-10-16 09:43:02 -07:00
oprofile sh: Fixup cpu_data references for the non-boot CPUs. 2007-02-13 10:54:45 +09:00
tools sh: remove support for sh7300 and solution engine 7300 2007-07-26 15:37:57 +09:00
Kconfig sh: Conditionalize gUSA support. 2007-09-28 16:04:49 +09:00
Kconfig.debug sh: minor fixes 2007-09-21 11:57:52 +09:00
Makefile sh: Magic Panel R2 board support. 2007-09-21 11:57:54 +09:00