diff options
Diffstat (limited to 'arch/m68k/mm/init.c')
-rw-r--r-- | arch/m68k/mm/init.c | 34 |
1 files changed, 1 insertions, 33 deletions
diff --git a/arch/m68k/mm/init.c b/arch/m68k/mm/init.c index d8fb9c5303cc..81bb08ceec18 100644 --- a/arch/m68k/mm/init.c +++ b/arch/m68k/mm/init.c | |||
@@ -32,8 +32,6 @@ | |||
32 | 32 | ||
33 | DEFINE_PER_CPU(struct mmu_gather, mmu_gathers); | 33 | DEFINE_PER_CPU(struct mmu_gather, mmu_gathers); |
34 | 34 | ||
35 | static bootmem_data_t __initdata bootmem_data[MAX_NUMNODES]; | ||
36 | |||
37 | pg_data_t pg_data_map[MAX_NUMNODES]; | 35 | pg_data_t pg_data_map[MAX_NUMNODES]; |
38 | EXPORT_SYMBOL(pg_data_map); | 36 | EXPORT_SYMBOL(pg_data_map); |
39 | 37 | ||
@@ -58,7 +56,7 @@ void __init m68k_setup_node(int node) | |||
58 | pg_data_table[i] = pg_data_map + node; | 56 | pg_data_table[i] = pg_data_map + node; |
59 | } | 57 | } |
60 | #endif | 58 | #endif |
61 | pg_data_map[node].bdata = bootmem_data + node; | 59 | pg_data_map[node].bdata = bootmem_node_data + node; |
62 | node_set_online(node); | 60 | node_set_online(node); |
63 | } | 61 | } |
64 | 62 | ||
@@ -71,36 +69,6 @@ void __init m68k_setup_node(int node) | |||
71 | void *empty_zero_page; | 69 | void *empty_zero_page; |
72 | EXPORT_SYMBOL(empty_zero_page); | 70 | EXPORT_SYMBOL(empty_zero_page); |
73 | 71 | ||
74 | void show_mem(void) | ||
75 | { | ||
76 | pg_data_t *pgdat; | ||
77 | int free = 0, total = 0, reserved = 0, shared = 0; | ||
78 | int cached = 0; | ||
79 | int i; | ||
80 | |||
81 | printk("\nMem-info:\n"); | ||
82 | show_free_areas(); | ||
83 | for_each_online_pgdat(pgdat) { | ||
84 | for (i = 0; i < pgdat->node_spanned_pages; i++) { | ||
85 | struct page *page = pgdat->node_mem_map + i; | ||
86 | total++; | ||
87 | if (PageReserved(page)) | ||
88 | reserved++; | ||
89 | else if (PageSwapCache(page)) | ||
90 | cached++; | ||
91 | else if (!page_count(page)) | ||
92 | free++; | ||
93 | else | ||
94 | shared += page_count(page) - 1; | ||
95 | } | ||
96 | } | ||
97 | printk("%d pages of RAM\n",total); | ||
98 | printk("%d free pages\n",free); | ||
99 | printk("%d reserved pages\n",reserved); | ||
100 | printk("%d pages shared\n",shared); | ||
101 | printk("%d pages swap cached\n",cached); | ||
102 | } | ||
103 | |||
104 | extern void init_pointer_table(unsigned long ptable); | 72 | extern void init_pointer_table(unsigned long ptable); |
105 | 73 | ||
106 | /* References to section boundaries */ | 74 | /* References to section boundaries */ |