diff options
author | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-10-17 14:10:11 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-10-17 14:10:11 -0400 |
commit | fb9fc395174138983a49f2da982ed14caabbe741 (patch) | |
tree | 5d5d3643ee6853a899205613da272cc343fdc1a4 /arch/x86/mm/init_32.c | |
parent | 0eafaae84e21ac033815cc9f33c3ae889cd7ccfe (diff) | |
parent | ace2e92e193126711cb3a83a3752b2c5b8396950 (diff) |
Merge branch 'xen-upstream' of git://git.kernel.org/pub/scm/linux/kernel/git/jeremy/xen
* 'xen-upstream' of git://git.kernel.org/pub/scm/linux/kernel/git/jeremy/xen:
xfs: eagerly remove vmap mappings to avoid upsetting Xen
xen: add some debug output for failed multicalls
xen: fix incorrect vcpu_register_vcpu_info hypercall argument
xen: ask the hypervisor how much space it needs reserved
xen: lock pte pages while pinning/unpinning
xen: deal with stale cr3 values when unpinning pagetables
xen: add batch completion callbacks
xen: yield to IPI target if necessary
Clean up duplicate includes in arch/i386/xen/
remove dead code in pgtable_cache_init
paravirt: clean up lazy mode handling
paravirt: refactor struct paravirt_ops into smaller pv_*_ops
Diffstat (limited to 'arch/x86/mm/init_32.c')
-rw-r--r-- | arch/x86/mm/init_32.c | 22 |
1 files changed, 5 insertions, 17 deletions
diff --git a/arch/x86/mm/init_32.c b/arch/x86/mm/init_32.c index dda4e83649a0..33d367a3432e 100644 --- a/arch/x86/mm/init_32.c +++ b/arch/x86/mm/init_32.c | |||
@@ -741,24 +741,12 @@ struct kmem_cache *pmd_cache; | |||
741 | 741 | ||
742 | void __init pgtable_cache_init(void) | 742 | void __init pgtable_cache_init(void) |
743 | { | 743 | { |
744 | size_t pgd_size = PTRS_PER_PGD*sizeof(pgd_t); | 744 | if (PTRS_PER_PMD > 1) |
745 | |||
746 | if (PTRS_PER_PMD > 1) { | ||
747 | pmd_cache = kmem_cache_create("pmd", | 745 | pmd_cache = kmem_cache_create("pmd", |
748 | PTRS_PER_PMD*sizeof(pmd_t), | 746 | PTRS_PER_PMD*sizeof(pmd_t), |
749 | PTRS_PER_PMD*sizeof(pmd_t), | 747 | PTRS_PER_PMD*sizeof(pmd_t), |
750 | SLAB_PANIC, | 748 | SLAB_PANIC, |
751 | pmd_ctor); | 749 | pmd_ctor); |
752 | if (!SHARED_KERNEL_PMD) { | ||
753 | /* If we're in PAE mode and have a non-shared | ||
754 | kernel pmd, then the pgd size must be a | ||
755 | page size. This is because the pgd_list | ||
756 | links through the page structure, so there | ||
757 | can only be one pgd per page for this to | ||
758 | work. */ | ||
759 | pgd_size = PAGE_SIZE; | ||
760 | } | ||
761 | } | ||
762 | } | 750 | } |
763 | 751 | ||
764 | /* | 752 | /* |