aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/hrtimer.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/hrtimer.c')
-rw-r--r--kernel/hrtimer.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/hrtimer.c b/kernel/hrtimer.c
index c7f0c79b2cb5..60b6329ab222 100644
--- a/kernel/hrtimer.c
+++ b/kernel/hrtimer.c
@@ -49,6 +49,7 @@
49#include <linux/timer.h> 49#include <linux/timer.h>
50 50
51#include <litmus/debug_trace.h> 51#include <litmus/debug_trace.h>
52#include <litmus/litmus.h>
52 53
53#include <asm/uaccess.h> 54#include <asm/uaccess.h>
54 55
@@ -1701,7 +1702,7 @@ long hrtimer_nanosleep(struct timespec *rqtp, struct timespec __user *rmtp,
1701 unsigned long slack; 1702 unsigned long slack;
1702 1703
1703 slack = current->timer_slack_ns; 1704 slack = current->timer_slack_ns;
1704 if (rt_task(current)) 1705 if (rt_task(current) || is_realtime(current))
1705 slack = 0; 1706 slack = 0;
1706 1707
1707 hrtimer_init_on_stack(&t.timer, clockid, mode); 1708 hrtimer_init_on_stack(&t.timer, clockid, mode);