aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/mm/pageattr-test.c
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2008-01-30 07:34:04 -0500
committerIngo Molnar <mingo@elte.hu>2008-01-30 07:34:04 -0500
commit30551bb3ce9257a2352b3cb4e45010d415cc0ad5 (patch)
treeedcf2a24fc689ecb4a0420c0d555d042002ecacf /arch/x86/mm/pageattr-test.c
parent0a663088cd6ff9e89f285ae7689e6eee46cfb54c (diff)
x86: add PG_LEVEL enum
this way PG_LEVEL_1GB will be an easy change. Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'arch/x86/mm/pageattr-test.c')
-rw-r--r--arch/x86/mm/pageattr-test.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/x86/mm/pageattr-test.c b/arch/x86/mm/pageattr-test.c
index 6cc106b388a5..d7a93008cc12 100644
--- a/arch/x86/mm/pageattr-test.c
+++ b/arch/x86/mm/pageattr-test.c
@@ -16,14 +16,12 @@
16 16
17enum { 17enum {
18 NTEST = 400, 18 NTEST = 400,
19 LOWEST_LEVEL = PG_LEVEL_4K,
19#ifdef CONFIG_X86_64 20#ifdef CONFIG_X86_64
20 LOWEST_LEVEL = 4,
21 LPS = (1 << PMD_SHIFT), 21 LPS = (1 << PMD_SHIFT),
22#elif defined(CONFIG_X86_PAE) 22#elif defined(CONFIG_X86_PAE)
23 LOWEST_LEVEL = 4,
24 LPS = (1 << PMD_SHIFT), 23 LPS = (1 << PMD_SHIFT),
25#else 24#else
26 LOWEST_LEVEL = 4, /* lookup_address lies here */
27 LPS = (1 << 22), 25 LPS = (1 << 22),
28#endif 26#endif
29 GPS = (1<<30) 27 GPS = (1<<30)