|
|
|
|
|
|
|
|
|
|
xen-devel
[Xen-devel] [PATCH 01/10] remove dead code in pgtable_cache_init
To: |
LKML <linux-kernel@xxxxxxxxxxxxxxx> |
Subject: |
[Xen-devel] [PATCH 01/10] remove dead code in pgtable_cache_init |
From: |
Jeremy Fitzhardinge <jeremy@xxxxxxxx> |
Date: |
Fri, 12 Oct 2007 14:11:33 -0700 |
Cc: |
xen-devel@xxxxxxxxxxxxxxxxxxx, virtualization@xxxxxxxxxxxxxx, Andi Kleen <ak@xxxxxxx>, William Lee Irwin III <wli@xxxxxxxxxxxxxx>, Chris Wright <chrisw@xxxxxxxxxxxx>, Andi Kleen <ak@xxxxxx>, Thomas Gleixner <tglx@xxxxxxxxxxxxx>, Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>, Keir Fraser <keir@xxxxxxxxxxxxx>, Ingo Molnar <mingo@xxxxxxx>, Christoph Lameter <clameter@xxxxxxx> |
Delivery-date: |
Fri, 12 Oct 2007 14:45:11 -0700 |
Envelope-to: |
www-data@xxxxxxxxxxxxxxxxxx |
List-help: |
<mailto:xen-devel-request@lists.xensource.com?subject=help> |
List-id: |
Xen developer discussion <xen-devel.lists.xensource.com> |
List-post: |
<mailto:xen-devel@lists.xensource.com> |
List-subscribe: |
<http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe> |
List-unsubscribe: |
<http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe> |
References: |
<20071012211132.198718000@xxxxxxxx> |
Sender: |
xen-devel-bounces@xxxxxxxxxxxxxxxxxxx |
User-agent: |
quilt/0.46-1 |
The conversion from using a slab cache to quicklist left some residual
dead code.
I note that in the conversion it now always allocates a whole page for
the pgd, rather than the 32 bytes needed for a PAE pgd. Was this
intended?
Signed-off-by: Jeremy Fitzhardinge <jeremy@xxxxxxxxxxxxx>
Cc: Christoph Lameter <clameter@xxxxxxx>
Cc: Andi Kleen <ak@xxxxxxx>
Cc: William Lee Irwin III <wli@xxxxxxxxxxxxxx>
Cc: Ingo Molnar <mingo@xxxxxxx>
Cc: Thomas Gleixner <tglx@xxxxxxxxxxxxx>
---
arch/i386/mm/init.c | 22 +++++-----------------
1 file changed, 5 insertions(+), 17 deletions(-)
===================================================================
--- a/arch/i386/mm/init.c
+++ b/arch/i386/mm/init.c
@@ -746,24 +746,12 @@ struct kmem_cache *pmd_cache;
void __init pgtable_cache_init(void)
{
- size_t pgd_size = PTRS_PER_PGD*sizeof(pgd_t);
-
- if (PTRS_PER_PMD > 1) {
+ if (PTRS_PER_PMD > 1)
pmd_cache = kmem_cache_create("pmd",
- PTRS_PER_PMD*sizeof(pmd_t),
- PTRS_PER_PMD*sizeof(pmd_t),
- SLAB_PANIC,
- pmd_ctor);
- if (!SHARED_KERNEL_PMD) {
- /* If we're in PAE mode and have a non-shared
- kernel pmd, then the pgd size must be a
- page size. This is because the pgd_list
- links through the page structure, so there
- can only be one pgd per page for this to
- work. */
- pgd_size = PAGE_SIZE;
- }
- }
+ PTRS_PER_PMD*sizeof(pmd_t),
+ PTRS_PER_PMD*sizeof(pmd_t),
+ SLAB_PANIC,
+ pmd_ctor);
}
/*
--
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- [Xen-devel] [PATCH 00/10] REVIEW: Xen patches for 2.6.24, Jeremy Fitzhardinge
- [Xen-devel] [PATCH 02/10] Clean up duplicate includes in arch/i386/xen/, Jeremy Fitzhardinge
- [Xen-devel] [PATCH 03/10] xen: yield to IPI target if necessary, Jeremy Fitzhardinge
- [Xen-devel] [PATCH 05/10] xen: deal with stale cr3 values when unpinning pagetables, Jeremy Fitzhardinge
- [Xen-devel] [PATCH 07/10] xen: ask the hypervisor how much space it needs reserved, Jeremy Fitzhardinge
- [Xen-devel] [PATCH 06/10] xen: lock pte pages while pinning/unpinning, Jeremy Fitzhardinge
- [Xen-devel] [PATCH 08/10] xen: fix incorrect vcpu_register_vcpu_info hypercall argument, Jeremy Fitzhardinge
- [Xen-devel] [PATCH 10/10] xfs: eagerly remove vmap mappings to avoid upsetting Xen, Jeremy Fitzhardinge
- [Xen-devel] [PATCH 09/10] xen: add some debug output for failed multicalls, Jeremy Fitzhardinge
- [Xen-devel] [PATCH 01/10] remove dead code in pgtable_cache_init,
Jeremy Fitzhardinge <=
- [Xen-devel] [PATCH 04/10] xen: add batch completion callbacks, Jeremy Fitzhardinge
|
|
|
|
|