Commit 969a86a2 authored by Nicholas Piggin's avatar Nicholas Piggin Committed by Michael Ellerman

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: default avatarNicholas Piggin <npiggin@gmail.com>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
parent e36d0a2e
...@@ -128,7 +128,7 @@ void __flush_tlb_power9(unsigned int action) ...@@ -128,7 +128,7 @@ void __flush_tlb_power9(unsigned int action)
{ {
unsigned int num_sets; unsigned int num_sets;
if (radix_enabled()) if (early_radix_enabled())
num_sets = POWER9_TLB_SETS_RADIX; num_sets = POWER9_TLB_SETS_RADIX;
else else
num_sets = POWER9_TLB_SETS_HASH; num_sets = POWER9_TLB_SETS_HASH;
......
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