summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/include/asm/pgtable-ppc64-4k.h
diff options
context:
space:
mode:
authorScott Wood <scottwood@freescale.com>2012-09-12 13:00:09 +0000
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2012-09-17 16:31:47 +1000
commitf3d3444572dbf01d36884f9b3fe69a611420ad37 (patch)
tree98dd108e3803425ec612af65347d26b0cec2fb78 /arch/powerpc/include/asm/pgtable-ppc64-4k.h
parentb92a66a65cb4480774066d9a3080c77eb34b7232 (diff)
downloadblackbird-op-linux-f3d3444572dbf01d36884f9b3fe69a611420ad37.tar.gz
blackbird-op-linux-f3d3444572dbf01d36884f9b3fe69a611420ad37.zip
powerpc/mm: Fix typo in PTRS_PER_PUD
PTRS_PER_PUD should be based on PUD_INDEX_SIZE, not PMD_INDEX_SIZE. We got away with it because PUD and PMD had the same index size, but this is no longer true with Aneesh's patchset to support a 46-bit user effective address space. Signed-off-by: Scott Wood <scottwood@freescale.com> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/include/asm/pgtable-ppc64-4k.h')
-rw-r--r--arch/powerpc/include/asm/pgtable-ppc64-4k.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/include/asm/pgtable-ppc64-4k.h b/arch/powerpc/include/asm/pgtable-ppc64-4k.h
index 6eefdcffa359..d6489a2c64c8 100644
--- a/arch/powerpc/include/asm/pgtable-ppc64-4k.h
+++ b/arch/powerpc/include/asm/pgtable-ppc64-4k.h
@@ -19,7 +19,7 @@
#define PTRS_PER_PTE (1 << PTE_INDEX_SIZE)
#define PTRS_PER_PMD (1 << PMD_INDEX_SIZE)
-#define PTRS_PER_PUD (1 << PMD_INDEX_SIZE)
+#define PTRS_PER_PUD (1 << PUD_INDEX_SIZE)
#define PTRS_PER_PGD (1 << PGD_INDEX_SIZE)
/* PMD_SHIFT determines what a second-level page table entry can map */
OpenPOWER on IntegriCloud