aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sparc64/mm/init.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/sparc64/mm/init.c')
-rw-r--r--arch/sparc64/mm/init.c24
1 files changed, 0 insertions, 24 deletions
diff --git a/arch/sparc64/mm/init.c b/arch/sparc64/mm/init.c
index cafadcbcdf38..d7004eaf1c8e 100644
--- a/arch/sparc64/mm/init.c
+++ b/arch/sparc64/mm/init.c
@@ -164,30 +164,6 @@ unsigned long sparc64_kern_sec_context __read_mostly;
164 164
165int bigkernel = 0; 165int bigkernel = 0;
166 166
167struct kmem_cache *pgtable_cache __read_mostly;
168
169static void zero_ctor(void *addr, struct kmem_cache *cache, unsigned long flags)
170{
171 clear_page(addr);
172}
173
174extern void tsb_cache_init(void);
175
176void pgtable_cache_init(void)
177{
178 pgtable_cache = kmem_cache_create("pgtable_cache",
179 PAGE_SIZE, PAGE_SIZE,
180 SLAB_HWCACHE_ALIGN |
181 SLAB_MUST_HWCACHE_ALIGN,
182 zero_ctor,
183 NULL);
184 if (!pgtable_cache) {
185 prom_printf("Could not create pgtable_cache\n");
186 prom_halt();
187 }
188 tsb_cache_init();
189}
190
191#ifdef CONFIG_DEBUG_DCFLUSH 167#ifdef CONFIG_DEBUG_DCFLUSH
192atomic_t dcpage_flushes = ATOMIC_INIT(0); 168atomic_t dcpage_flushes = ATOMIC_INIT(0);
193#ifdef CONFIG_SMP 169#ifdef CONFIG_SMP