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
This commit is contained in:
Prarit Bhargava 2020-02-17 08:46:27 -05:00 committed by Borislav Petkov
parent 11a48a5a18
commit 52cff04a81
1 changed files with 1 additions and 1 deletions

View File

@ -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: