powerpc/powernv: Use early_radix_enabled in POWER9 tlb flush
authorNicholas Piggin <npiggin@gmail.com>
Wed, 27 Sep 2017 05:45:58 +0000 (15:45 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 4 Oct 2017 00:28:01 +0000 (11:28 +1100)
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 <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/kernel/mce_power.c

index b76ca198e09c186e2d90e9b3eb83c7765c6c1cdf..d37e612050b5c9267b9f2b4570db10509528d7ef 100644 (file)
@@ -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;