From: Nicholas Piggin Date: Wed, 27 Sep 2017 05:45:58 +0000 (+1000) Subject: powerpc/powernv: Use early_radix_enabled in POWER9 tlb flush X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=969a86a2855d484a00205a424df1c693acee15d9;p=openwrt%2Fstaging%2Fblogic.git powerpc/powernv: Use early_radix_enabled in POWER9 tlb flush This code is used at boot and machine checks, so it should be using early_radix_enabled() (which is usable any time). Signed-off-by: Nicholas Piggin Signed-off-by: Michael Ellerman --- diff --git a/arch/powerpc/kernel/mce_power.c b/arch/powerpc/kernel/mce_power.c index b76ca198e09c..d37e612050b5 100644 --- a/arch/powerpc/kernel/mce_power.c +++ b/arch/powerpc/kernel/mce_power.c @@ -128,7 +128,7 @@ void __flush_tlb_power9(unsigned int action) { unsigned int num_sets; - if (radix_enabled()) + if (early_radix_enabled()) num_sets = POWER9_TLB_SETS_RADIX; else num_sets = POWER9_TLB_SETS_HASH;