|
@@ -201,7 +201,8 @@ static void cpu_ready_for_interrupts(void)
|
|
get_paca()->kernel_msr = MSR_KERNEL;
|
|
get_paca()->kernel_msr = MSR_KERNEL;
|
|
|
|
|
|
/* Enable AIL if supported */
|
|
/* Enable AIL if supported */
|
|
- if (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);
|
|
unsigned long lpcr = mfspr(SPRN_LPCR);
|
|
mtspr(SPRN_LPCR, lpcr | LPCR_AIL_3);
|
|
mtspr(SPRN_LPCR, lpcr | LPCR_AIL_3);
|
|
}
|
|
}
|