spi: rockchip: todos spi-rockchip-test.c
[firefly-linux-kernel-4.4.55.git] / kernel / hrtimer.c
index aadf4b7a607c8bfb8a032b12fb067446628f90c4..1e84be107436a3969fbf61569cebf921e4e02e4c 100644 (file)
@@ -47,6 +47,7 @@
 #include <linux/sched/sysctl.h>
 #include <linux/sched/rt.h>
 #include <linux/timer.h>
+#include <linux/freezer.h>
 
 #include <asm/uaccess.h>
 
@@ -1565,7 +1566,7 @@ static int __sched do_nanosleep(struct hrtimer_sleeper *t, enum hrtimer_mode mod
                        t->task = NULL;
 
                if (likely(t->task))
-                       schedule();
+                       freezable_schedule();
 
                hrtimer_cancel(&t->timer);
                mode = HRTIMER_MODE_ABS;