rockchip-cpufreq.c: remove warning
[firefly-linux-kernel-4.4.55.git] / kernel / futex.c
index 3bc18bf48d0c3d88732d51c434d47d1a9d6b52bb..15a7d724e6b2f20fbaaec83fbf97d033b47c5652 100644 (file)
@@ -62,6 +62,7 @@
 #include <linux/ptrace.h>
 #include <linux/sched/rt.h>
 #include <linux/hugetlb.h>
+#include <linux/freezer.h>
 
 #include <asm/futex.h>
 
@@ -1810,7 +1811,7 @@ static void futex_wait_queue_me(struct futex_hash_bucket *hb, struct futex_q *q,
                 * is no timeout, or if it has yet to expire.
                 */
                if (!timeout || timeout->task)
-                       schedule();
+                       freezable_schedule();
        }
        __set_current_state(TASK_RUNNING);
 }