On Tue, 23 Apr 2024, Sergiy Kibrik wrote: > Since MCG_LMCE_P bit is specific to Intel CPUs the code to check it can > possibly be excluded from build if !CONFIG_INTEL. With these guards > calls to vmce_has_lmce() are eliminated and mce_intel.c can end up > not being built. > > Also replace boilerplate code that checks for MCG_LMCE_P flag with > vmce_has_lmce(), which might contribute to readability a bit. > > Signed-off-by: Sergiy Kibrik <sergiy_kib...@epam.com>
Reviewed-by: Stefano Stabellini <sstabell...@kernel.org>