aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-sparc64/page.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-sparc64/page.h')
-rw-r--r--include/asm-sparc64/page.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/include/asm-sparc64/page.h b/include/asm-sparc64/page.h
index fdf0ceb76028..ff736eafa64d 100644
--- a/include/asm-sparc64/page.h
+++ b/include/asm-sparc64/page.h
@@ -3,6 +3,8 @@
3#ifndef _SPARC64_PAGE_H 3#ifndef _SPARC64_PAGE_H
4#define _SPARC64_PAGE_H 4#define _SPARC64_PAGE_H
5 5
6#ifdef __KERNEL__
7
6#include <asm/const.h> 8#include <asm/const.h>
7 9
8#if defined(CONFIG_SPARC64_PAGE_SIZE_8KB) 10#if defined(CONFIG_SPARC64_PAGE_SIZE_8KB)
@@ -27,8 +29,6 @@
27#define DCACHE_ALIASING_POSSIBLE 29#define DCACHE_ALIASING_POSSIBLE
28#endif 30#endif
29 31
30#ifdef __KERNEL__
31
32#if defined(CONFIG_HUGETLB_PAGE_SIZE_4MB) 32#if defined(CONFIG_HUGETLB_PAGE_SIZE_4MB)
33#define HPAGE_SHIFT 22 33#define HPAGE_SHIFT 22
34#elif defined(CONFIG_HUGETLB_PAGE_SIZE_512K) 34#elif defined(CONFIG_HUGETLB_PAGE_SIZE_512K)
@@ -141,8 +141,7 @@ typedef unsigned long pgprot_t;
141#define VM_DATA_DEFAULT_FLAGS (VM_READ | VM_WRITE | VM_EXEC | \ 141#define VM_DATA_DEFAULT_FLAGS (VM_READ | VM_WRITE | VM_EXEC | \
142 VM_MAYREAD | VM_MAYWRITE | VM_MAYEXEC) 142 VM_MAYREAD | VM_MAYWRITE | VM_MAYEXEC)
143 143
144#endif /* !(__KERNEL__) */
145
146#include <asm-generic/page.h> 144#include <asm-generic/page.h>
147 145
148#endif /* !(_SPARC64_PAGE_H) */ 146#endif /* __KERNEL__ */
147#endif /* _SPARC64_PAGE_H */