aboutsummaryrefslogtreecommitdiffstats
path: root/mm/page_alloc.c
diff options
context:
space:
mode:
authorMatt Tolentino <metolent@cs.vt.edu>2006-01-17 01:03:44 -0500
committerLinus Torvalds <torvalds@g5.osdl.org>2006-01-17 02:18:35 -0500
commitc09b42404d29c8a9266f8186632330dc8474bf2e (patch)
tree26477ddbd49e6de7ef16e21d7a7440b9b9f11c57 /mm/page_alloc.c
parent44df75e629106efcada087cead6c3f33ed6bcc60 (diff)
[PATCH] x86_64: add __meminit for memory hotplug
Add __meminit to the __init lineup to ensure functions default to __init when memory hotplug is not enabled. Replace __devinit with __meminit on functions that were changed when the memory hotplug code was introduced. Signed-off-by: Matt Tolentino <matthew.e.tolentino@intel.com> Signed-off-by: Andi Kleen <ak@suse.de> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'mm/page_alloc.c')
-rw-r--r--mm/page_alloc.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/mm/page_alloc.c b/mm/page_alloc.c
index 8c960b469593..c2e29743a8d1 100644
--- a/mm/page_alloc.c
+++ b/mm/page_alloc.c
@@ -1735,7 +1735,7 @@ static void __init calculate_zone_totalpages(struct pglist_data *pgdat,
1735 * up by free_all_bootmem() once the early boot process is 1735 * up by free_all_bootmem() once the early boot process is
1736 * done. Non-atomic initialization, single-pass. 1736 * done. Non-atomic initialization, single-pass.
1737 */ 1737 */
1738void __devinit memmap_init_zone(unsigned long size, int nid, unsigned long zone, 1738void __meminit memmap_init_zone(unsigned long size, int nid, unsigned long zone,
1739 unsigned long start_pfn) 1739 unsigned long start_pfn)
1740{ 1740{
1741 struct page *page; 1741 struct page *page;
@@ -1788,7 +1788,7 @@ void zonetable_add(struct zone *zone, int nid, int zid, unsigned long pfn,
1788 memmap_init_zone((size), (nid), (zone), (start_pfn)) 1788 memmap_init_zone((size), (nid), (zone), (start_pfn))
1789#endif 1789#endif
1790 1790
1791static int __devinit zone_batchsize(struct zone *zone) 1791static int __meminit zone_batchsize(struct zone *zone)
1792{ 1792{
1793 int batch; 1793 int batch;
1794 1794
@@ -1882,7 +1882,7 @@ static struct per_cpu_pageset
1882 * Dynamically allocate memory for the 1882 * Dynamically allocate memory for the
1883 * per cpu pageset array in struct zone. 1883 * per cpu pageset array in struct zone.
1884 */ 1884 */
1885static int __devinit process_zones(int cpu) 1885static int __meminit process_zones(int cpu)
1886{ 1886{
1887 struct zone *zone, *dzone; 1887 struct zone *zone, *dzone;
1888 1888
@@ -1923,7 +1923,7 @@ static inline void free_zone_pagesets(int cpu)
1923 } 1923 }
1924} 1924}
1925 1925
1926static int __devinit pageset_cpuup_callback(struct notifier_block *nfb, 1926static int __meminit pageset_cpuup_callback(struct notifier_block *nfb,
1927 unsigned long action, 1927 unsigned long action,
1928 void *hcpu) 1928 void *hcpu)
1929{ 1929{
@@ -1963,7 +1963,7 @@ void __init setup_per_cpu_pageset(void)
1963 1963
1964#endif 1964#endif
1965 1965
1966static __devinit 1966static __meminit
1967void zone_wait_table_init(struct zone *zone, unsigned long zone_size_pages) 1967void zone_wait_table_init(struct zone *zone, unsigned long zone_size_pages)
1968{ 1968{
1969 int i; 1969 int i;
@@ -1983,7 +1983,7 @@ void zone_wait_table_init(struct zone *zone, unsigned long zone_size_pages)
1983 init_waitqueue_head(zone->wait_table + i); 1983 init_waitqueue_head(zone->wait_table + i);
1984} 1984}
1985 1985
1986static __devinit void zone_pcp_init(struct zone *zone) 1986static __meminit void zone_pcp_init(struct zone *zone)
1987{ 1987{
1988 int cpu; 1988 int cpu;
1989 unsigned long batch = zone_batchsize(zone); 1989 unsigned long batch = zone_batchsize(zone);
@@ -2001,7 +2001,7 @@ static __devinit void zone_pcp_init(struct zone *zone)
2001 zone->name, zone->present_pages, batch); 2001 zone->name, zone->present_pages, batch);
2002} 2002}
2003 2003
2004static __devinit void init_currently_empty_zone(struct zone *zone, 2004static __meminit void init_currently_empty_zone(struct zone *zone,
2005 unsigned long zone_start_pfn, unsigned long size) 2005 unsigned long zone_start_pfn, unsigned long size)
2006{ 2006{
2007 struct pglist_data *pgdat = zone->zone_pgdat; 2007 struct pglist_data *pgdat = zone->zone_pgdat;