diff options
author | Andi Kleen <ak@suse.de> | 2008-07-24 00:27:51 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-07-24 13:47:19 -0400 |
commit | b4718e628dbf68a2dee23b5709e2aa3190409c56 (patch) | |
tree | e685b2bd36a0fe731b128d2814996a693561d288 /include/asm-x86 | |
parent | 39c11e6c05b7fedbf7ed4df3908b25f622d56204 (diff) |
x86: add hugepagesz option on 64-bit
Add an hugepagesz=... option similar to IA64, PPC etc. to x86-64.
This finally allows to select GB pages for hugetlbfs in x86 now that all
the infrastructure is in place.
Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Nick Piggin <npiggin@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/asm-x86')
-rw-r--r-- | include/asm-x86/page.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/asm-x86/page.h b/include/asm-x86/page.h index 6c846228948d..6e02098b1605 100644 --- a/include/asm-x86/page.h +++ b/include/asm-x86/page.h | |||
@@ -32,6 +32,8 @@ | |||
32 | #define HPAGE_MASK (~(HPAGE_SIZE - 1)) | 32 | #define HPAGE_MASK (~(HPAGE_SIZE - 1)) |
33 | #define HUGETLB_PAGE_ORDER (HPAGE_SHIFT - PAGE_SHIFT) | 33 | #define HUGETLB_PAGE_ORDER (HPAGE_SHIFT - PAGE_SHIFT) |
34 | 34 | ||
35 | #define HUGE_MAX_HSTATE 2 | ||
36 | |||
35 | /* to align the pointer to the (next) page boundary */ | 37 | /* to align the pointer to the (next) page boundary */ |
36 | #define PAGE_ALIGN(addr) (((addr)+PAGE_SIZE-1)&PAGE_MASK) | 38 | #define PAGE_ALIGN(addr) (((addr)+PAGE_SIZE-1)&PAGE_MASK) |
37 | 39 | ||