File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -1189,6 +1189,11 @@ static int __init mce_amd_init(void)
1189
1189
if (!fam_ops )
1190
1190
return - ENOMEM ;
1191
1191
1192
+ if (boot_cpu_has (X86_FEATURE_SMCA )) {
1193
+ xec_mask = 0x3f ;
1194
+ goto out ;
1195
+ }
1196
+
1192
1197
switch (c -> x86 ) {
1193
1198
case 0xf :
1194
1199
fam_ops -> mc0_mce = k8_mc0_mce ;
@@ -1237,18 +1242,16 @@ static int __init mce_amd_init(void)
1237
1242
1238
1243
case 0x17 :
1239
1244
case 0x18 :
1240
- xec_mask = 0x3f ;
1241
- if (!boot_cpu_has (X86_FEATURE_SMCA )) {
1242
- printk (KERN_WARNING "Decoding supported only on Scalable MCA processors.\n" );
1243
- goto err_out ;
1244
- }
1245
+ pr_warn ("Decoding supported only on Scalable MCA processors.\n" );
1246
+ goto err_out ;
1245
1247
break ;
1246
1248
1247
1249
default :
1248
1250
printk (KERN_WARNING "Huh? What family is it: 0x%x?!\n" , c -> x86 );
1249
1251
goto err_out ;
1250
1252
}
1251
1253
1254
+ out :
1252
1255
pr_info ("MCE: In-kernel MCE decoding enabled.\n" );
1253
1256
1254
1257
mce_register_decode_chain (& amd_mce_dec_nb );
You can’t perform that action at this time.
0 commit comments