aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/i386/mm/init.c2
-rw-r--r--include/linux/init.h12
-rw-r--r--mm/page_alloc.c14
3 files changed, 20 insertions, 8 deletions
diff --git a/arch/i386/mm/init.c b/arch/i386/mm/init.c
index 7df494b51a5b..2700f01994ba 100644
--- a/arch/i386/mm/init.c
+++ b/arch/i386/mm/init.c
@@ -268,7 +268,7 @@ static void __init permanent_kmaps_init(pgd_t *pgd_base)
268 pkmap_page_table = pte; 268 pkmap_page_table = pte;
269} 269}
270 270
271static void __devinit free_new_highpage(struct page *page) 271static void __meminit free_new_highpage(struct page *page)
272{ 272{
273 set_page_count(page, 1); 273 set_page_count(page, 1);
274 __free_page(page); 274 __free_page(page);
diff --git a/include/linux/init.h b/include/linux/init.h
index 59008c3826cf..ff8d8b8632f4 100644
--- a/include/linux/init.h
+++ b/include/linux/init.h
@@ -241,6 +241,18 @@ void __init parse_early_param(void);
241#define __cpuexitdata __exitdata 241#define __cpuexitdata __exitdata
242#endif 242#endif
243 243
244#ifdef CONFIG_MEMORY_HOTPLUG
245#define __meminit
246#define __meminitdata
247#define __memexit
248#define __memexitdata
249#else
250#define __meminit __init
251#define __meminitdata __initdata
252#define __memexit __exit
253#define __memexitdata __exitdata
254#endif
255
244/* Functions marked as __devexit may be discarded at kernel link time, depending 256/* Functions marked as __devexit may be discarded at kernel link time, depending
245 on config options. Newer versions of binutils detect references from 257 on config options. Newer versions of binutils detect references from
246 retained sections to discarded sections and flag an error. Pointers to 258 retained sections to discarded sections and flag an error. Pointers to
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;