Commit 17179aeb authored by Christophe Leroy's avatar Christophe Leroy Committed by Michael Ellerman

powerpc/mm: Fix verification of MMU_FTR_TYPE_44x

MMU_FTR_TYPE_44x cannot be checked by cpu_has_feature()

Use mmu_has_feature() instead

Fixes: 23eb7f56 ("powerpc: Convert flush_icache_range & friends to C")
Cc: stable@vger.kernel.org
Signed-off-by: default avatarChristophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/ceede82fadf37f3b8275e61fcf8cf29a3e2ec7fe.1602351011.git.christophe.leroy@csgroup.eu
parent c3cb5dbd
...@@ -556,7 +556,7 @@ void __flush_dcache_icache(void *p) ...@@ -556,7 +556,7 @@ void __flush_dcache_icache(void *p)
* space occurs, before returning to user space. * space occurs, before returning to user space.
*/ */
if (cpu_has_feature(MMU_FTR_TYPE_44x)) if (mmu_has_feature(MMU_FTR_TYPE_44x))
return; return;
invalidate_icache_range(addr, addr + PAGE_SIZE); invalidate_icache_range(addr, addr + PAGE_SIZE);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment