x86/mce: Deduplicate exception handling
BugLink: https://bugs.launchpad.net/bugs/1967750
Prepare code for further simplification. No functional change.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lkml.kernel.org/r/20210908132525.096452100@linutronix.de
(cherry picked from commit
e42404afc4ca856c48f1e05752541faa3587c472)
Acked-by: Dimitri John Ledkov <dimitri.ledkov@canonical.com>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>