powerpc/64s: Enable barrier_nospec based on firmware settings
Check what firmware told us and enable/disable the barrier_nospec as appropriate. We err on the side of enabling the barrier, as it's no-op on older systems, see the comment for more detail. Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
This commit is contained in:
committed by
Michael Ellerman
parent
815069ca57
commit
cb3d6759a9
@ -124,6 +124,7 @@ static void pnv_setup_rfi_flush(void)
|
||||
security_ftr_enabled(SEC_FTR_L1D_FLUSH_HV));
|
||||
|
||||
setup_rfi_flush(type, enable);
|
||||
setup_barrier_nospec();
|
||||
}
|
||||
|
||||
static void __init pnv_setup_arch(void)
|
||||
|
Reference in New Issue
Block a user