powerpc/64: Don't use early_cpu_has_feature() in cpu_ready_for_interrupts()
authorMichael Ellerman <mpe@ellerman.id.au>
Tue, 21 Mar 2017 05:24:38 +0000 (16:24 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 27 Mar 2017 23:52:05 +0000 (10:52 +1100)
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>
arch/powerpc/kernel/setup_64.c

index 9cfaa8b69b5f32eb64d7adcd8504ccdb6cd87b32..729e990a019d379e198caba001fbee396a5601b5 100644 (file)
@@ -230,8 +230,8 @@ static void cpu_ready_for_interrupts(void)
         * If we are not in hypervisor mode the job is done once for
         * the whole partition in configure_exceptions().
         */
-       if (early_cpu_has_feature(CPU_FTR_HVMODE) &&
-           early_cpu_has_feature(CPU_FTR_ARCH_207S)) {
+       if (cpu_has_feature(CPU_FTR_HVMODE) &&
+           cpu_has_feature(CPU_FTR_ARCH_207S)) {
                unsigned long lpcr = mfspr(SPRN_LPCR);
                mtspr(SPRN_LPCR, lpcr | LPCR_AIL_3);
        }