diff options
Diffstat (limited to 'arch/powerpc/mm/init_64.c')
-rw-r--r-- | arch/powerpc/mm/init_64.c | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/arch/powerpc/mm/init_64.c b/arch/powerpc/mm/init_64.c index 31582329cd67..335c578b9cc3 100644 --- a/arch/powerpc/mm/init_64.c +++ b/arch/powerpc/mm/init_64.c | |||
@@ -109,35 +109,6 @@ void free_initrd_mem(unsigned long start, unsigned long end) | |||
109 | } | 109 | } |
110 | #endif | 110 | #endif |
111 | 111 | ||
112 | #ifdef CONFIG_PROC_KCORE | ||
113 | static struct kcore_list kcore_vmem; | ||
114 | |||
115 | static int __init setup_kcore(void) | ||
116 | { | ||
117 | int i; | ||
118 | |||
119 | for (i=0; i < lmb.memory.cnt; i++) { | ||
120 | unsigned long base, size; | ||
121 | struct kcore_list *kcore_mem; | ||
122 | |||
123 | base = lmb.memory.region[i].base; | ||
124 | size = lmb.memory.region[i].size; | ||
125 | |||
126 | /* GFP_ATOMIC to avoid might_sleep warnings during boot */ | ||
127 | kcore_mem = kmalloc(sizeof(struct kcore_list), GFP_ATOMIC); | ||
128 | if (!kcore_mem) | ||
129 | panic("%s: kmalloc failed\n", __func__); | ||
130 | |||
131 | kclist_add(kcore_mem, __va(base), size); | ||
132 | } | ||
133 | |||
134 | kclist_add(&kcore_vmem, (void *)VMALLOC_START, VMALLOC_END-VMALLOC_START); | ||
135 | |||
136 | return 0; | ||
137 | } | ||
138 | module_init(setup_kcore); | ||
139 | #endif | ||
140 | |||
141 | static void pgd_ctor(void *addr) | 112 | static void pgd_ctor(void *addr) |
142 | { | 113 | { |
143 | memset(addr, 0, PGD_TABLE_SIZE); | 114 | memset(addr, 0, PGD_TABLE_SIZE); |