@@ -1365,6 +1365,7 @@ static void __mce_notify_work(void)
}
#ifdef CONFIG_PREEMPT_RT_FULL
+static bool notify_work_ready __read_mostly;
struct task_struct *mce_notify_helper;
static int mce_notify_helper_thread(void *unused)
@@ -1386,12 +1387,14 @@ static int mce_notify_work_init(void)
if (!mce_notify_helper)
return -ENOMEM;
+ notify_work_ready = true;
return 0;
}
static void mce_notify_work(void)
{
- wake_up_process(mce_notify_helper);
+ if (notify_work_ready)
+ wake_up_process(mce_notify_helper);
}
#else
static void mce_notify_work(void)