]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - arch/sparc/mm/tsb.c
sparc64: kill page table quicklists
[karo-tx-linux.git] / arch / sparc / mm / tsb.c
index a5f51b22fcbe9eb4654a5d33d38054c886d75761..536412d8f4161d486a1d5b79cd00b605e3f1b323 100644 (file)
@@ -236,6 +236,8 @@ static void setup_tsb_params(struct mm_struct *mm, unsigned long tsb_idx, unsign
        }
 }
 
+struct kmem_cache *pgtable_cache __read_mostly;
+
 static struct kmem_cache *tsb_caches[8] __read_mostly;
 
 static const char *tsb_cache_names[8] = {
@@ -253,6 +255,15 @@ void __init pgtable_cache_init(void)
 {
        unsigned long i;
 
+       pgtable_cache = kmem_cache_create("pgtable_cache",
+                                         PAGE_SIZE, PAGE_SIZE,
+                                         0,
+                                         _clear_page);
+       if (!pgtable_cache) {
+               prom_printf("pgtable_cache_init(): Could not create!\n");
+               prom_halt();
+       }
+
        for (i = 0; i < 8; i++) {
                unsigned long size = 8192 << i;
                const char *name = tsb_cache_names[i];