[SPARC64]: Use SLAB caches for TSB tables.

Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
David S. Miller
2006-03-18 18:12:42 -08:00
parent b52439c22c
commit 9b4006dcf6
3 changed files with 69 additions and 25 deletions

View File

@@ -165,6 +165,8 @@ static void zero_ctor(void *addr, kmem_cache_t *cache, unsigned long flags)
clear_page(addr);
}
extern void tsb_cache_init(void);
void pgtable_cache_init(void)
{
pgtable_cache = kmem_cache_create("pgtable_cache",
@@ -174,9 +176,10 @@ void pgtable_cache_init(void)
zero_ctor,
NULL);
if (!pgtable_cache) {
prom_printf("pgtable_cache_init(): Could not create!\n");
prom_printf("Could not create pgtable_cache\n");
prom_halt();
}
tsb_cache_init();
}
#ifdef CONFIG_DEBUG_DCFLUSH