diff options
Diffstat (limited to 'kernel/hrtimer.c')
-rw-r--r-- | kernel/hrtimer.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/hrtimer.c b/kernel/hrtimer.c index 383319bae3f7..09094361dce5 100644 --- a/kernel/hrtimer.c +++ b/kernel/hrtimer.c | |||
@@ -46,6 +46,7 @@ | |||
46 | #include <linux/sched.h> | 46 | #include <linux/sched.h> |
47 | #include <linux/sched/sysctl.h> | 47 | #include <linux/sched/sysctl.h> |
48 | #include <linux/sched/rt.h> | 48 | #include <linux/sched/rt.h> |
49 | #include <linux/sched/deadline.h> | ||
49 | #include <linux/timer.h> | 50 | #include <linux/timer.h> |
50 | #include <linux/freezer.h> | 51 | #include <linux/freezer.h> |
51 | 52 | ||
@@ -1610,7 +1611,7 @@ long hrtimer_nanosleep(struct timespec *rqtp, struct timespec __user *rmtp, | |||
1610 | unsigned long slack; | 1611 | unsigned long slack; |
1611 | 1612 | ||
1612 | slack = current->timer_slack_ns; | 1613 | slack = current->timer_slack_ns; |
1613 | if (rt_task(current)) | 1614 | if (dl_task(current) || rt_task(current)) |
1614 | slack = 0; | 1615 | slack = 0; |
1615 | 1616 | ||
1616 | hrtimer_init_on_stack(&t.timer, clockid, mode); | 1617 | hrtimer_init_on_stack(&t.timer, clockid, mode); |