diff options
author | Matt Fleming <matt@console-pimps.org> | 2009-12-31 15:19:24 +0300 |
---|---|---|
committer | Matt Fleming <matt@console-pimps.org> | 2010-01-02 04:02:25 +0300 |
commit | 2a5eacca85d39d8b6dffae821d7d260f05584dc7 (patch) | |
tree | d3c686fffb3b181a6d9b6790ce912e308c45a0ce /arch/sh/include/asm/pgtable.h | |
parent | b4c892762373c5e59c7e8db35f5f9a7658602bda (diff) | |
download | linux-2a5eacca85d39d8b6dffae821d7d260f05584dc7.tar.xz |
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.h | 4 |
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; #define pte_pfn(x) ((unsigned long)(((x).pte_low >> PAGE_SHIFT))) /* - * No page table caches to initialise + * Initialise the page table caches */ -#define pgtable_cache_init() do { } while (0) +extern void pgtable_cache_init(void); struct vm_area_struct; |