diff options
author | David S. Miller <davem@sunset.davemloft.net> | 2006-03-18 21:12:42 -0500 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-03-20 04:16:39 -0500 |
commit | 9b4006dcf6a8c43bd482b9c1ec576f0ed270ef23 (patch) | |
tree | e04ac039a49f37ee5e8eca3fd654df0649a1806c /arch/sparc64/mm/init.c | |
parent | b52439c22c63dbbefd5395f2151c0ef4f667e949 (diff) |
[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) | |||
165 | clear_page(addr); | 165 | clear_page(addr); |
166 | } | 166 | } |
167 | 167 | ||
168 | extern void tsb_cache_init(void); | ||
169 | |||
168 | void pgtable_cache_init(void) | 170 | void pgtable_cache_init(void) |
169 | { | 171 | { |
170 | pgtable_cache = kmem_cache_create("pgtable_cache", | 172 | pgtable_cache = kmem_cache_create("pgtable_cache", |
@@ -174,9 +176,10 @@ void pgtable_cache_init(void) | |||
174 | zero_ctor, | 176 | zero_ctor, |
175 | NULL); | 177 | NULL); |
176 | if (!pgtable_cache) { | 178 | if (!pgtable_cache) { |
177 | prom_printf("pgtable_cache_init(): Could not create!\n"); | 179 | prom_printf("Could not create pgtable_cache\n"); |
178 | prom_halt(); | 180 | prom_halt(); |
179 | } | 181 | } |
182 | tsb_cache_init(); | ||
180 | } | 183 | } |
181 | 184 | ||
182 | #ifdef CONFIG_DEBUG_DCFLUSH | 185 | #ifdef CONFIG_DEBUG_DCFLUSH |