aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2008-09-24 16:38:52 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2008-09-24 16:38:52 -0700
commit1126388609dee3f2aca2a64de7b0709d0fede785 (patch)
tree4ab6b74ddcc7d4d1743b87efaf943da1e32fbcfe /include
parentMN10300: Make sched_clock() report time since boot (diff)
parent[MIPS] Fixe the definition of PTRS_PER_PGD (diff)
downloadlinux-dev-1126388609dee3f2aca2a64de7b0709d0fede785.tar.xz
linux-dev-1126388609dee3f2aca2a64de7b0709d0fede785.zip
Merge branch 'upstream' of git://ftp.linux-mips.org/pub/scm/upstream-linus
* 'upstream' of git://ftp.linux-mips.org/pub/scm/upstream-linus: [MIPS] Fixe the definition of PTRS_PER_PGD [MIPS] au1000: Fix gpio direction
Diffstat (limited to 'include')
-rw-r--r--include/asm-mips/pgtable-32.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/asm-mips/pgtable-32.h b/include/asm-mips/pgtable-32.h
index 4396e9ffd418..55813d6150c7 100644
--- a/include/asm-mips/pgtable-32.h
+++ b/include/asm-mips/pgtable-32.h
@@ -57,7 +57,7 @@ extern int add_temporary_entry(unsigned long entrylo0, unsigned long entrylo1,
#define PMD_ORDER 1
#define PTE_ORDER 0
-#define PTRS_PER_PGD ((PAGE_SIZE << PGD_ORDER) / sizeof(pgd_t))
+#define PTRS_PER_PGD (USER_PTRS_PER_PGD * 2)
#define PTRS_PER_PTE ((PAGE_SIZE << PTE_ORDER) / sizeof(pte_t))
#define USER_PTRS_PER_PGD (0x80000000UL/PGDIR_SIZE)