aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/powerpc/mm/hugetlbpage-hash64.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/powerpc/mm/hugetlbpage-hash64.c b/arch/powerpc/mm/hugetlbpage-hash64.c
index 2e6a8f9345d3..f6b09edc5e6e 100644
--- a/arch/powerpc/mm/hugetlbpage-hash64.c
+++ b/arch/powerpc/mm/hugetlbpage-hash64.c
@@ -26,7 +26,7 @@ int __hash_page_huge(unsigned long ea, unsigned long access, unsigned long vsid,
26 real_pte_t rpte; 26 real_pte_t rpte;
27 unsigned long vpn; 27 unsigned long vpn;
28 unsigned long old_pte, new_pte; 28 unsigned long old_pte, new_pte;
29 unsigned long rflags, pa, sz; 29 unsigned long rflags, pa;
30 long slot, offset; 30 long slot, offset;
31 31
32 BUG_ON(shift != mmu_psize_defs[mmu_psize].shift); 32 BUG_ON(shift != mmu_psize_defs[mmu_psize].shift);
@@ -73,7 +73,6 @@ int __hash_page_huge(unsigned long ea, unsigned long access, unsigned long vsid,
73 offset = PTRS_PER_PMD; 73 offset = PTRS_PER_PMD;
74 rpte = __real_pte(__pte(old_pte), ptep, offset); 74 rpte = __real_pte(__pte(old_pte), ptep, offset);
75 75
76 sz = ((1UL) << shift);
77 if (!cpu_has_feature(CPU_FTR_COHERENT_ICACHE)) 76 if (!cpu_has_feature(CPU_FTR_COHERENT_ICACHE))
78 /* No CPU has hugepages but lacks no execute, so we 77 /* No CPU has hugepages but lacks no execute, so we
79 * don't need to worry about that case */ 78 * don't need to worry about that case */