Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5511a45f authored by Michael Ellerman's avatar Michael Ellerman
Browse files

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: default avatarMichael Ellerman <mpe@ellerman.id.au>
parent 1127d5f7
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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);
	}