aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh/include/asm/pgtable.h
diff options
context:
space:
mode:
authorMatt Fleming <matt@console-pimps.org>2009-12-31 07:19:24 -0500
committerMatt Fleming <matt@console-pimps.org>2010-01-01 20:02:25 -0500
commit2a5eacca85d39d8b6dffae821d7d260f05584dc7 (patch)
treed3c686fffb3b181a6d9b6790ce912e308c45a0ce /arch/sh/include/asm/pgtable.h
parentb4c892762373c5e59c7e8db35f5f9a7658602bda (diff)
sh: Move page table allocation out of line
We also switched away from quicklists and instead moved to slab caches. After benchmarking both implementations the difference is negligible. The slab caches suit us better though because the size of a pgd table is just 4 entries when we're using a 3-level page table layout and quicklists always deal with pages. Signed-off-by: Matt Fleming <matt@console-pimps.org>
Diffstat (limited to 'arch/sh/include/asm/pgtable.h')
-rw-r--r--arch/sh/include/asm/pgtable.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/sh/include/asm/pgtable.h b/arch/sh/include/asm/pgtable.h
index 9effcc3b0d10..78598ec33d0a 100644
--- a/arch/sh/include/asm/pgtable.h
+++ b/arch/sh/include/asm/pgtable.h
@@ -141,9 +141,9 @@ typedef pte_t *pte_addr_t;
141#define pte_pfn(x) ((unsigned long)(((x).pte_low >> PAGE_SHIFT))) 141#define pte_pfn(x) ((unsigned long)(((x).pte_low >> PAGE_SHIFT)))
142 142
143/* 143/*
144 * No page table caches to initialise 144 * Initialise the page table caches
145 */ 145 */
146#define pgtable_cache_init() do { } while (0) 146extern void pgtable_cache_init(void);
147 147
148struct vm_area_struct; 148struct vm_area_struct;
149 149