diff options
author | Becky Bruce <beckyb@kernel.crashing.org> | 2011-10-10 06:50:40 -0400 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2011-12-07 00:26:22 -0500 |
commit | 881fde1db591628db0494e77cd9002b0ba8b04b7 (patch) | |
tree | 0281839c8a9d248236645f07bcb4dcd45e6ed992 /arch/powerpc/include/asm | |
parent | a1cd54198811e3c35fcaabdb94767b307f7ad1db (diff) |
powerpc: hugetlb: modify include usage for FSL BookE code
The original 32-bit hugetlb implementation used PPC64 vs PPC32 to
determine which code path to take. However, the final hugetlb
implementation for 64-bit FSL ended up shared with the FSL
32-bit code so the actual check needs to be FSL_BOOK3E vs
everything else. This patch changes the include protections to
reflect this.
There are also a couple of related comment fixes.
Signed-off-by: Becky Bruce <beckyb@kernel.crashing.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/include/asm')
-rw-r--r-- | arch/powerpc/include/asm/hugetlb.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/powerpc/include/asm/hugetlb.h b/arch/powerpc/include/asm/hugetlb.h index 70f9885f5c0f..273acfad65ae 100644 --- a/arch/powerpc/include/asm/hugetlb.h +++ b/arch/powerpc/include/asm/hugetlb.h | |||
@@ -22,14 +22,14 @@ static inline pte_t *hugepte_offset(hugepd_t *hpdp, unsigned long addr, | |||
22 | unsigned pdshift) | 22 | unsigned pdshift) |
23 | { | 23 | { |
24 | /* | 24 | /* |
25 | * On 32-bit, we have multiple higher-level table entries that point to | 25 | * On FSL BookE, we have multiple higher-level table entries that |
26 | * the same hugepte. Just use the first one since they're all | 26 | * point to the same hugepte. Just use the first one since they're all |
27 | * identical. So for that case, idx=0. | 27 | * identical. So for that case, idx=0. |
28 | */ | 28 | */ |
29 | unsigned long idx = 0; | 29 | unsigned long idx = 0; |
30 | 30 | ||
31 | pte_t *dir = hugepd_page(*hpdp); | 31 | pte_t *dir = hugepd_page(*hpdp); |
32 | #ifdef CONFIG_PPC64 | 32 | #ifndef CONFIG_PPC_FSL_BOOK3E |
33 | idx = (addr & ((1UL << pdshift) - 1)) >> hugepd_shift(*hpdp); | 33 | idx = (addr & ((1UL << pdshift) - 1)) >> hugepd_shift(*hpdp); |
34 | #endif | 34 | #endif |
35 | 35 | ||