]> Pileus Git - ~andy/linux/blobdiff - arch/ia64/mm/discontig.c
[PATCH] for_each_online_pgdat: renaming for_each_pgdat
[~andy/linux] / arch / ia64 / mm / discontig.c
index 573d5cc63e2b927eaf0791833018b8643172d64d..384f1d7dce961d71b52ccbb21667afde5c5f8a01 100644 (file)
@@ -386,7 +386,7 @@ static void __init pgdat_insert(pg_data_t *pgdat)
 {
        pg_data_t *prev = NULL, *next;
 
-       for_each_pgdat(next)
+       for_each_online_pgdat(next)
                if (pgdat->node_id < next->node_id)
                        break;
                else
@@ -525,7 +525,7 @@ void __init find_memory(void)
  * find_pernode_space() does most of this already, we just need to set
  * local_per_cpu_offset
  */
-void *per_cpu_init(void)
+void __cpuinit *per_cpu_init(void)
 {
        int cpu;
        static int first_time = 1;
@@ -560,7 +560,7 @@ void show_mem(void)
        printk("Mem-info:\n");
        show_free_areas();
        printk("Free swap:       %6ldkB\n", nr_swap_pages<<(PAGE_SHIFT-10));
-       for_each_pgdat(pgdat) {
+       for_each_online_pgdat(pgdat) {
                unsigned long present;
                unsigned long flags;
                int shared = 0, cached = 0, reserved = 0;