diff options
author | Jan H. Schönherr <jschoenh@amazon.de> | 2019-12-10 01:07:33 +0100 |
---|---|---|
committer | Borislav Petkov <bp@suse.de> | 2019-12-17 10:26:41 +0100 |
commit | 81736abd5578b1dbdf95eb714da45787054198ba (patch) | |
tree | 9ec1c062b2157049fedae3ce4695e06b12edfb15 /arch/x86/kernel/cpu/mce/inject.c | |
parent | 2d806d0723589a726b48b88e0f53988849dc03d3 (diff) | |
download | linux-81736abd5578b1dbdf95eb714da45787054198ba.tar.bz2 |
x86/mce: Remove mce_inject_log() in favor of mce_log()
The mutex in mce_inject_log() became unnecessary with commit
5de97c9f6d85 ("x86/mce: Factor out and deprecate the /dev/mcelog driver"),
though the original reason for its presence only vanished with commit
7298f08ea887 ("x86/mcelog: Get rid of RCU remnants").
Drop the mutex. And as that makes mce_inject_log() identical to mce_log(),
get rid of the former in favor of the latter.
Signed-off-by: Jan H. Schönherr <jschoenh@amazon.de>
Signed-off-by: Borislav Petkov <bp@suse.de>
Reviewed-by: Tony Luck <tony.luck@intel.com>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: linux-edac <linux-edac@vger.kernel.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: x86-ml <x86@kernel.org>
Link: https://lkml.kernel.org/r/20191210000733.17979-7-jschoenh@amazon.de
Diffstat (limited to 'arch/x86/kernel/cpu/mce/inject.c')
-rw-r--r-- | arch/x86/kernel/cpu/mce/inject.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kernel/cpu/mce/inject.c b/arch/x86/kernel/cpu/mce/inject.c index 1f30117b24ba..3413b41b8d55 100644 --- a/arch/x86/kernel/cpu/mce/inject.c +++ b/arch/x86/kernel/cpu/mce/inject.c @@ -494,7 +494,7 @@ static void do_inject(void) i_mce.status |= MCI_STATUS_SYNDV; if (inj_type == SW_INJ) { - mce_inject_log(&i_mce); + mce_log(&i_mce); return; } |