diff options
author | David S. Miller <davem@sunset.davemloft.net> | 2006-03-18 18:12:42 -0800 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-03-20 01:16:39 -0800 |
commit | 9b4006dcf6a8c43bd482b9c1ec576f0ed270ef23 (patch) | |
tree | e04ac039a49f37ee5e8eca3fd654df0649a1806c /arch/sparc64/mm/init.c | |
parent | b52439c22c63dbbefd5395f2151c0ef4f667e949 (diff) | |
download | lwn-9b4006dcf6a8c43bd482b9c1ec576f0ed270ef23.tar.gz lwn-9b4006dcf6a8c43bd482b9c1ec576f0ed270ef23.zip |
[SPARC64]: Use SLAB caches for TSB tables.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc64/mm/init.c')
-rw-r--r-- | arch/sparc64/mm/init.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/arch/sparc64/mm/init.c b/arch/sparc64/mm/init.c index d703b67bc7b9..a1a364e537c7 100644 --- a/arch/sparc64/mm/init.c +++ b/arch/sparc64/mm/init.c @@ -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 |