diff options
-rw-r--r-- | arch/ia64/Kconfig | 4 | ||||
-rw-r--r-- | arch/x86/Kconfig | 4 | ||||
-rw-r--r-- | include/linux/page-flags.h | 4 |
3 files changed, 10 insertions, 2 deletions
diff --git a/arch/ia64/Kconfig b/arch/ia64/Kconfig index 170042b420d4..e6246119932a 100644 --- a/arch/ia64/Kconfig +++ b/arch/ia64/Kconfig | |||
@@ -112,6 +112,10 @@ config IA64_UNCACHED_ALLOCATOR | |||
112 | bool | 112 | bool |
113 | select GENERIC_ALLOCATOR | 113 | select GENERIC_ALLOCATOR |
114 | 114 | ||
115 | config ARCH_USES_PG_UNCACHED | ||
116 | def_bool y | ||
117 | depends on IA64_UNCACHED_ALLOCATOR | ||
118 | |||
115 | config AUDIT_ARCH | 119 | config AUDIT_ARCH |
116 | bool | 120 | bool |
117 | default y | 121 | default y |
diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index c07f72205909..8e1595382196 100644 --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig | |||
@@ -1414,6 +1414,10 @@ config X86_PAT | |||
1414 | 1414 | ||
1415 | If unsure, say Y. | 1415 | If unsure, say Y. |
1416 | 1416 | ||
1417 | config ARCH_USES_PG_UNCACHED | ||
1418 | def_bool y | ||
1419 | depends on X86_PAT | ||
1420 | |||
1417 | config EFI | 1421 | config EFI |
1418 | bool "EFI runtime service support" | 1422 | bool "EFI runtime service support" |
1419 | depends on ACPI | 1423 | depends on ACPI |
diff --git a/include/linux/page-flags.h b/include/linux/page-flags.h index e2e5ce543595..2b87acfc5f87 100644 --- a/include/linux/page-flags.h +++ b/include/linux/page-flags.h | |||
@@ -99,7 +99,7 @@ enum pageflags { | |||
99 | #ifdef CONFIG_HAVE_MLOCKED_PAGE_BIT | 99 | #ifdef CONFIG_HAVE_MLOCKED_PAGE_BIT |
100 | PG_mlocked, /* Page is vma mlocked */ | 100 | PG_mlocked, /* Page is vma mlocked */ |
101 | #endif | 101 | #endif |
102 | #ifdef CONFIG_IA64_UNCACHED_ALLOCATOR | 102 | #ifdef CONFIG_ARCH_USES_PG_UNCACHED |
103 | PG_uncached, /* Page has been mapped as uncached */ | 103 | PG_uncached, /* Page has been mapped as uncached */ |
104 | #endif | 104 | #endif |
105 | __NR_PAGEFLAGS, | 105 | __NR_PAGEFLAGS, |
@@ -257,7 +257,7 @@ PAGEFLAG_FALSE(Mlocked) | |||
257 | SETPAGEFLAG_NOOP(Mlocked) TESTCLEARFLAG_FALSE(Mlocked) | 257 | SETPAGEFLAG_NOOP(Mlocked) TESTCLEARFLAG_FALSE(Mlocked) |
258 | #endif | 258 | #endif |
259 | 259 | ||
260 | #ifdef CONFIG_IA64_UNCACHED_ALLOCATOR | 260 | #ifdef CONFIG_ARCH_USES_PG_UNCACHED |
261 | PAGEFLAG(Uncached, uncached) | 261 | PAGEFLAG(Uncached, uncached) |
262 | #else | 262 | #else |
263 | PAGEFLAG_FALSE(Uncached) | 263 | PAGEFLAG_FALSE(Uncached) |