]> git.ipfire.org Git - thirdparty/linux.git/commit
x86/mce: Remove __mcheck_cpu_init_early()
authorYazen Ghannam <yazen.ghannam@amd.com>
Mon, 25 Aug 2025 17:33:03 +0000 (17:33 +0000)
committerBorislav Petkov (AMD) <bp@alien8.de>
Fri, 5 Sep 2025 10:43:44 +0000 (12:43 +0200)
commit9f34032ec0deef58bd0eb7475f1981adfa998648
tree507a77d2f58238b0f591181e5528088f6de71af4
parent0f134c53246366c00664b640f9edc9be5db255b3
x86/mce: Remove __mcheck_cpu_init_early()

The __mcheck_cpu_init_early() function was introduced so that some
vendor-specific features are detected before the first MCA polling event done
in __mcheck_cpu_init_generic().

Currently, __mcheck_cpu_init_early() is only used on AMD-based systems and
additional code will be needed to support various system configurations.

However, the current and future vendor-specific code should be done during
vendor init. This keeps all the vendor code in a common location and
simplifies the generic init flow.

Move all the __mcheck_cpu_init_early() code into mce_amd_feature_init().

Signed-off-by: Yazen Ghannam <yazen.ghannam@amd.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Reviewed-by: Qiuxu Zhuo <qiuxu.zhuo@intel.com>
Reviewed-by: Tony Luck <tony.luck@intel.com>
Reviewed-by: Nikolay Borisov <nik.borisov@suse.com>
Tested-by: Tony Luck <tony.luck@intel.com>
Link: https://lore.kernel.org/20250825-wip-mca-updates-v5-6-865768a2eef8@amd.com
arch/x86/kernel/cpu/mce/amd.c
arch/x86/kernel/cpu/mce/core.c