import PULS_20160108
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / drivers / w1 / w1.c
index 7ce277d2bb676182dcbcddae1f500a77ae038842..8f03c9150943f372dfd0b468d17f3e07062f3caa 100644 (file)
@@ -975,8 +975,9 @@ int w1_process(void *data)
         * time can be calculated in jiffies once.
         */
        const unsigned long jtime = msecs_to_jiffies(w1_timeout * 1000);
+       set_freezable();
 
-       while (!kthread_should_stop()) {
+       while (!kthread_freezable_should_stop(NULL)) {
                if (dev->search_count) {
                        mutex_lock(&dev->mutex);
                        w1_search_process(dev, W1_SEARCH);