Freezer: make kernel threads nonfreezable by default
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / kernel / softlockup.c
index 0131e296ffb416435f7c54a935657c624a09d0c5..708d4882c0c391bffa47a24ae0153bccabd0a1c7 100644 (file)
@@ -10,6 +10,7 @@
 #include <linux/cpu.h>
 #include <linux/init.h>
 #include <linux/delay.h>
+#include <linux/freezer.h>
 #include <linux/kthread.h>
 #include <linux/notifier.h>
 #include <linux/module.h>
@@ -116,7 +117,6 @@ static int watchdog(void * __bind_cpu)
        struct sched_param param = { .sched_priority = MAX_RT_PRIO-1 };
 
        sched_setscheduler(current, SCHED_FIFO, &param);
-       current->flags |= PF_NOFREEZE;
 
        /* initialize timestamp */
        touch_softlockup_watchdog();