diff options
author | Jon Tollefson <kniht@linux.vnet.ibm.com> | 2008-07-24 06:27:54 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-07-24 19:47:19 +0200 |
commit | 658013e93eb70494f7300bc90457b09a807232a4 (patch) | |
tree | d03a23ac4fff0b35138b5d8abb761e9fad85b09c /include/asm-powerpc/mmu-hash64.h | |
parent | powerpc: function to allocate gigantic hugepages (diff) | |
download | linux-658013e93eb70494f7300bc90457b09a807232a4.tar.xz linux-658013e93eb70494f7300bc90457b09a807232a4.zip |
powerpc: scan device tree for gigantic pages
The 16G huge pages have to be reserved in the HMC prior to boot. The
location of the pages are placed in the device tree. This patch adds code
to scan the device tree during very early boot and save these page
locations until hugetlbfs is ready for them.
Acked-by: Adam Litke <agl@us.ibm.com>
Signed-off-by: Jon Tollefson <kniht@linux.vnet.ibm.com>
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 '')
-rw-r--r-- | include/asm-powerpc/mmu-hash64.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/asm-powerpc/mmu-hash64.h b/include/asm-powerpc/mmu-hash64.h index d1dc16afb118..b61181aa7746 100644 --- a/include/asm-powerpc/mmu-hash64.h +++ b/include/asm-powerpc/mmu-hash64.h @@ -281,6 +281,8 @@ extern int htab_bolt_mapping(unsigned long vstart, unsigned long vend, unsigned long pstart, unsigned long mode, int psize, int ssize); extern void set_huge_psize(int psize); +extern void add_gpage(unsigned long addr, unsigned long page_size, + unsigned long number_of_pages); extern void demote_segment_4k(struct mm_struct *mm, unsigned long addr); extern void htab_initialize(void); |