diff options
author | Michael Ellerman <mpe@ellerman.id.au> | 2017-03-21 01:24:38 -0400 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2017-03-27 19:52:05 -0400 |
commit | 5511a45fc134f0784c403ef3488e2c07cd15bf14 (patch) | |
tree | 09a2f7edfe70b18fc8ca68b49eb70fbb5ed309c8 | |
parent | 1127d5f7fdcd99c28f2b70e12578372c330c8fa1 (diff) |
powerpc/64: Don't use early_cpu_has_feature() in cpu_ready_for_interrupts()
cpu_ready_for_interrupts() is called after feature patching, so there's
no need to use early_cpu_has_feature().
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
-rw-r--r-- | arch/powerpc/kernel/setup_64.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/powerpc/kernel/setup_64.c b/arch/powerpc/kernel/setup_64.c index 9cfaa8b69b5f..729e990a019d 100644 --- a/arch/powerpc/kernel/setup_64.c +++ b/arch/powerpc/kernel/setup_64.c | |||
@@ -230,8 +230,8 @@ static void cpu_ready_for_interrupts(void) | |||
230 | * If we are not in hypervisor mode the job is done once for | 230 | * If we are not in hypervisor mode the job is done once for |
231 | * the whole partition in configure_exceptions(). | 231 | * the whole partition in configure_exceptions(). |
232 | */ | 232 | */ |
233 | if (early_cpu_has_feature(CPU_FTR_HVMODE) && | 233 | if (cpu_has_feature(CPU_FTR_HVMODE) && |
234 | early_cpu_has_feature(CPU_FTR_ARCH_207S)) { | 234 | cpu_has_feature(CPU_FTR_ARCH_207S)) { |
235 | unsigned long lpcr = mfspr(SPRN_LPCR); | 235 | unsigned long lpcr = mfspr(SPRN_LPCR); |
236 | mtspr(SPRN_LPCR, lpcr | LPCR_AIL_3); | 236 | mtspr(SPRN_LPCR, lpcr | LPCR_AIL_3); |
237 | } | 237 | } |