From: Tejun Heo Date: Fri, 16 Sep 2016 19:49:32 +0000 (-0400) Subject: mce, workqueue: remove keventd_up() usage X-Git-Tag: Ubuntu-5.10.0-12.13~11312^2^2~6 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=a2c2727d207dbd596b79fceb0953ba84b24abb4e;p=mirror_ubuntu-hirsute-kernel.git mce, workqueue: remove keventd_up() usage Now that workqueue can handle work item queueing from very early during boot, there is no need to gate schedule_work() with keventd_up(). Remove it. Signed-off-by: Tejun Heo Cc: Tony Luck Cc: Borislav Petkov Cc: linux-edac@vger.kernel.org --- diff --git a/arch/x86/kernel/cpu/mcheck/mce.c b/arch/x86/kernel/cpu/mcheck/mce.c index 79d8ec849468..675b7d8cde0a 100644 --- a/arch/x86/kernel/cpu/mcheck/mce.c +++ b/arch/x86/kernel/cpu/mcheck/mce.c @@ -491,7 +491,7 @@ int mce_available(struct cpuinfo_x86 *c) static void mce_schedule_work(void) { - if (!mce_gen_pool_empty() && keventd_up()) + if (!mce_gen_pool_empty()) schedule_work(&mce_work); }