linux/arch/sh/mm
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
..
Kconfig sh: Support extended mode TLB on SH-X3. 2007-09-27 18:08:46 +09:00
Makefile sh: nommu: Kill off dummy page fault ops for SH-3/4. 2007-09-24 16:40:56 +09:00
cache-debugfs.c sh: Revert incorrect license string changes. 2007-09-24 17:49:51 +09:00
cache-sh2.c sh: Add support for SH7206 and SH7619 CPU subtypes. 2006-12-06 10:45:36 +09:00
cache-sh3.c sh: Fixup cpu_data references for the non-boot CPUs. 2007-02-13 10:54:45 +09:00
cache-sh4.c sh: Calculate cache aliases on L2 caches. 2007-09-24 17:00:45 +09:00
cache-sh7705.c sh: Revert lazy dcache writeback changes. 2007-03-05 19:46:47 +09:00
clear_page.S sh: Fixup various PAGE_SIZE == 4096 assumptions. 2006-12-06 10:45:39 +09:00
consistent.c sh: Zero-out coherent buffer in consistent_alloc(). 2006-10-10 18:33:10 +09:00
copy_page.S sh: __copy_user() optimizations for small copies. 2007-09-28 12:36:35 +09:00
extable.c Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
fault.c During VM oom condition, kill all threads in process group 2007-10-16 09:42:52 -07:00
hugetlbpage.c header cleaning: don't include smp_lock.h when not used 2007-05-08 11:15:07 -07:00
init.c fix memory hot remove not configured case. 2007-10-16 09:43:02 -07:00
ioremap.c sh: ioremap() through PMB needs asm/mmu.h. 2007-06-04 10:58:23 +09:00
numa.c sh: Support for multiple nodes. 2007-06-08 02:43:49 +00:00
pg-nommu.c sh: Various nommu fixes. 2006-09-27 17:21:02 +09:00
pg-sh4.c sh: Fix fs.h removal from mm.h regressions. 2007-07-31 13:01:43 +09:00
pg-sh7705.c sh: Revert lazy dcache writeback changes. 2007-03-05 19:46:47 +09:00
pmb.c sh: Support explicit L1 cache disabling. 2007-09-21 11:57:46 +09:00
tlb-flush.c sh: Revert lazy dcache writeback changes. 2007-03-05 19:46:47 +09:00
tlb-nommu.c sh: Local TLB flushing variants for SMP prep. 2007-02-13 10:54:45 +09:00
tlb-sh3.c sh: Revert lazy dcache writeback changes. 2007-03-05 19:46:47 +09:00
tlb-sh4.c sh: Fix up extended mode TLB for SH-X2+ cores. 2007-09-21 11:57:55 +09:00