diff options
author | Prarit Bhargava <prarit@redhat.com> | 2020-02-17 16:46:27 +0300 |
---|---|---|
committer | Borislav Petkov <bp@suse.de> | 2020-02-18 19:20:41 +0300 |
commit | 52cff04a81e9571735976e4d70984e89a7ee3885 (patch) | |
tree | 1072f08c8c5e879e82505b0a274e74c7b2345aa0 /drivers/edac/mce_amd.c | |
parent | 11a48a5a18c63fd7621bb050228cebf13566e4d8 (diff) | |
download | linux-52cff04a81e9571735976e4d70984e89a7ee3885.tar.xz |
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: Prarit Bhargava <prarit@redhat.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lkml.kernel.org/r/20200217134627.19765-1-prarit@redhat.com
Diffstat (limited to 'drivers/edac/mce_amd.c')
-rw-r--r-- | drivers/edac/mce_amd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/edac/mce_amd.c b/drivers/edac/mce_amd.c index ea980c556f2e..8874b7722b2f 100644 --- a/drivers/edac/mce_amd.c +++ b/drivers/edac/mce_amd.c @@ -1239,7 +1239,7 @@ static int __init mce_amd_init(void) case 0x17: 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; default: |