diff options
author | Christoph Lameter <clameter@sgi.com> | 2007-05-12 14:15:24 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-05-12 14:26:22 -0400 |
commit | f1d1a842d85acf34dd185027cb2c9b4fd13130ef (patch) | |
tree | 99ec45adca911aeb145a56d75a213ebb900b2175 /arch/i386/mm/init.c | |
parent | 8df767dd759c1390f604814ee5b2d1489f9a59f7 (diff) |
SLUB: i386 support
SLUB cannot run on i386 at this point because i386 uses the page->private and
page->index field of slab pages for the pgd cache.
Make SLUB run on i386 by replacing the pgd slab cache with a quicklist.
Limit the changes as much as possible. Leave the improvised linked list in place
etc etc. This has been working here for a couple of weeks now.
Acked-by: William Lee Irwin III <wli@holomorphy.com>
Signed-off-by: Christoph Lameter <clameter@sgi.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/i386/mm/init.c')
-rw-r--r-- | arch/i386/mm/init.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/arch/i386/mm/init.c b/arch/i386/mm/init.c index c50782efa5c..b22ce8d6b1b 100644 --- a/arch/i386/mm/init.c +++ b/arch/i386/mm/init.c | |||
@@ -740,7 +740,6 @@ int remove_memory(u64 start, u64 size) | |||
740 | EXPORT_SYMBOL_GPL(remove_memory); | 740 | EXPORT_SYMBOL_GPL(remove_memory); |
741 | #endif | 741 | #endif |
742 | 742 | ||
743 | struct kmem_cache *pgd_cache; | ||
744 | struct kmem_cache *pmd_cache; | 743 | struct kmem_cache *pmd_cache; |
745 | 744 | ||
746 | void __init pgtable_cache_init(void) | 745 | void __init pgtable_cache_init(void) |
@@ -764,12 +763,6 @@ void __init pgtable_cache_init(void) | |||
764 | pgd_size = PAGE_SIZE; | 763 | pgd_size = PAGE_SIZE; |
765 | } | 764 | } |
766 | } | 765 | } |
767 | pgd_cache = kmem_cache_create("pgd", | ||
768 | pgd_size, | ||
769 | pgd_size, | ||
770 | SLAB_PANIC, | ||
771 | pgd_ctor, | ||
772 | (!SHARED_KERNEL_PMD) ? pgd_dtor : NULL); | ||
773 | } | 766 | } |
774 | 767 | ||
775 | /* | 768 | /* |