x86/mce/amd: Init thresholding machinery only on relevant vendors
authorThomas Gleixner <tglx@linutronix.de>
Tue, 11 Feb 2020 23:34:01 +0000 (00:34 +0100)
committerBorislav Petkov <bp@suse.de>
Tue, 14 Apr 2020 13:47:11 +0000 (15:47 +0200)
commitc9bf318f77b3a78483e656e609d005c52aadc86d
tree475b6e6950ba1387736445e93c261621e2ab6513
parentada018b15ccecbdb95df46db7121516edb906bf6
x86/mce/amd: Init thresholding machinery only on relevant vendors

... and not unconditionally.

 [ bp: Add a new vendor_flags bit for that. ]

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lkml.kernel.org/r/20200403161943.1458-3-bp@alien8.de
arch/x86/kernel/cpu/mce/amd.c
arch/x86/kernel/cpu/mce/core.c
arch/x86/kernel/cpu/mce/internal.h