Commit 52cff04a authored by Prarit Bhargava's avatar Prarit Bhargava Committed by Borislav Petkov

EDAC/mce_amd: Print !SMCA processor warning only once

This warning is output for every virtual CPU in a guest on an EPYC 2
system because kvm doesn't enable SMCA. Once is enough too.

 [ bp: Massage. ]
Signed-off-by: default avatarPrarit Bhargava <prarit@redhat.com>
Signed-off-by: default avatarBorislav Petkov <bp@suse.de>
Link: https://lkml.kernel.org/r/20200217134627.19765-1-prarit@redhat.com
parent 11a48a5a
...@@ -1239,7 +1239,7 @@ static int __init mce_amd_init(void) ...@@ -1239,7 +1239,7 @@ static int __init mce_amd_init(void)
case 0x17: case 0x17:
case 0x18: case 0x18:
pr_warn("Decoding supported only on Scalable MCA processors.\n"); pr_warn_once("Decoding supported only on Scalable MCA processors.\n");
return -EINVAL; return -EINVAL;
default: default:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment