]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
x86/mce: Remove mce_report_event()
authorBorislav Petkov <bp@suse.de>
Tue, 12 Mar 2019 18:39:23 +0000 (19:39 +0100)
committerBorislav Petkov <bp@suse.de>
Fri, 29 Mar 2019 14:34:03 +0000 (15:34 +0100)
commit39f0584ee695f1d75f4181b209602b9c49e73821
tree3ef81ed5aefb8a8989f6573e4549140076ec4ee2
parent006c077041dc73b9490fffc4c6af5befe0687110
x86/mce: Remove mce_report_event()

Calling this function has been wrong for a while now:

* Can't call schedule_work() in #MC context.

* mce_notify_irq() either.

* None of that noodling is needed anymore - all it needs to do is kick
the IRQ work which would self-IPI so that once the #MC handler is done,
the work queue will run and process queued MCE records.

So remove it.

Reported-by: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: Borislav Petkov <bp@suse.de>
Cc: Tony Luck <tony.luck@intel.com>
Cc: x86@kernel.org
Link: https://lkml.kernel.org/r/20190325172121.7926-1-bp@alien8.de
arch/x86/kernel/cpu/mce/core.c