linux/arch/sh/mm
Jeremy Fitzhardinge 180c06efce hotplug-memory: make online_page() common
All architectures use an effectively identical definition of online_page(), so
just make it common code.  x86-64, ia64, powerpc and sh are actually
identical; x86-32 is slightly different.

x86-32's differences arise because it puts its hotplug pages in the highmem
zone.  We can handle this in the generic code by inspecting the page to see if
its in highmem, and update the totalhigh_pages count appropriately.  This
leaves init_32.c:free_new_highpage with a single caller, so I folded it into
add_one_highpage_init.

I also removed an incorrect comment referring to the NUMA case; any NUMA
details have already been dealt with by the time online_page() is called.

[akpm@linux-foundation.org: fix indenting]
Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Acked-by: Dave Hansen <dave@linux.vnet.ibm.com>
Reviewed-by: KAMEZAWA Hiroyuki <kamez.hiroyu@jp.fujitsu.com>
Tested-by: KAMEZAWA Hiroyuki <kamez.hiroyu@jp.fujitsu.com>
Cc: Yasunori Goto <y-goto@jp.fujitsu.com>
Cc: Christoph Lameter <clameter@sgi.com>
Acked-by: Ingo Molnar <mingo@elte.hu>
Acked-by: Yasunori Goto <y-goto@jp.fujitsu.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2008-04-28 08:58:17 -07:00
..
Kconfig sh: Flag PMB support as EXPERIMENTAL. 2008-03-06 16:06:38 +09:00
Makefile sh: Split out extable.c _32 and _64 variants. 2008-01-28 13:18:44 +09:00
Makefile_32 sh: clear/copy_page renames in lib and lib64. 2008-01-28 13:18:54 +09:00
Makefile_64 sh: Rename the _32 and _64 TLB flush variants. 2008-01-28 13:18:54 +09:00
cache-debugfs.c sh: Create an sh debugfs root. 2008-04-18 09:50:01 -07: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: Preparation for uncached jumps through PMB. 2008-01-28 13:18:59 +09:00
cache-sh5.c sh: Get SH-5 caches working again post-unification. 2008-02-14 14:22:12 +09:00
cache-sh7705.c sh: Preparation for uncached jumps through PMB. 2008-01-28 13:18:59 +09:00
consistent.c sh: declared coherent memory support V2 fix 2008-02-14 14:22:07 +09:00
extable_32.c sh: Split out extable.c _32 and _64 variants. 2008-01-28 13:18:44 +09:00
extable_64.c sh: comment tidying for sh64->sh migration. 2008-01-28 13:18:58 +09:00
fault_32.c sh: Fix multiple UTLB hit on UP SH-4. 2008-02-14 14:45:08 +09:00
fault_64.c sh: Kill off a stray proc tlb reference in fault_64. 2008-01-28 13:18:52 +09:00
hugetlbpage.c header cleaning: don't include smp_lock.h when not used 2007-05-08 11:15:07 -07:00
init.c hotplug-memory: make online_page() common 2008-04-28 08:58:17 -07:00
ioremap_32.c sh: replace remaining __FUNCTION__ occurrences 2008-03-06 11:18:22 +09:00
ioremap_64.c sh: replace remaining __FUNCTION__ occurrences 2008-03-06 11:18:22 +09:00
numa.c Introduce flags for reserve_bootmem() 2008-02-07 08:42:25 -08:00
pg-nommu.c sh: Tidy up various clear_page()/copy_page() definitions. 2008-01-28 13:18:50 +09:00
pg-sh4.c sh: Optimized copy_{to,from}_user_page() for SH-4. 2007-11-07 11:14:12 +09:00
pg-sh7705.c sh/mm/pg-sh7705.c must #include <linux/fs.h> 2008-03-06 11:11:49 +09:00
pmb.c sh: Create an sh debugfs root. 2008-04-18 09:50:01 -07:00
tlb-nommu.c sh: Provide a stubbed __set_fixmap() for nommu. 2008-01-28 13:19:01 +09:00
tlb-sh3.c sh: Revert lazy dcache writeback changes. 2007-03-05 19:46:47 +09:00
tlb-sh4.c sh: Preparation for uncached jumps through PMB. 2008-01-28 13:18:59 +09:00
tlb-sh5.c sh: comment tidying for sh64->sh migration. 2008-01-28 13:18:58 +09:00
tlbflush_32.c sh: Rename the _32 and _64 TLB flush variants. 2008-01-28 13:18:54 +09:00
tlbflush_64.c sh: replace remaining __FUNCTION__ occurrences 2008-03-06 11:18:22 +09:00