|
|
@@ -111,7 +111,7 @@ static int __init enable_strict_msr_control(char *str)
|
|
|
}
|
|
|
early_param("ppc_strict_facility_enable", enable_strict_msr_control);
|
|
|
|
|
|
-void msr_check_and_set(unsigned long bits)
|
|
|
+unsigned long msr_check_and_set(unsigned long bits)
|
|
|
{
|
|
|
unsigned long oldmsr = mfmsr();
|
|
|
unsigned long newmsr;
|
|
|
@@ -125,6 +125,8 @@ void msr_check_and_set(unsigned long bits)
|
|
|
|
|
|
if (oldmsr != newmsr)
|
|
|
mtmsr_isync(newmsr);
|
|
|
+
|
|
|
+ return newmsr;
|
|
|
}
|
|
|
|
|
|
void __msr_check_and_clear(unsigned long bits)
|