diff options
Diffstat (limited to 'fs/select.c')
-rw-r--r-- | fs/select.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/select.c b/fs/select.c index f684c750e08a..fd65d1b6aeb6 100644 --- a/fs/select.c +++ b/fs/select.c | |||
@@ -30,6 +30,8 @@ | |||
30 | #include <linux/freezer.h> | 30 | #include <linux/freezer.h> |
31 | #include <net/busy_poll.h> | 31 | #include <net/busy_poll.h> |
32 | 32 | ||
33 | #include <litmus/litmus.h> /* for is_realtime() */ | ||
34 | |||
33 | #include <asm/uaccess.h> | 35 | #include <asm/uaccess.h> |
34 | 36 | ||
35 | 37 | ||
@@ -79,7 +81,7 @@ long select_estimate_accuracy(struct timespec *tv) | |||
79 | * Realtime tasks get a slack of 0 for obvious reasons. | 81 | * Realtime tasks get a slack of 0 for obvious reasons. |
80 | */ | 82 | */ |
81 | 83 | ||
82 | if (rt_task(current)) | 84 | if (rt_task(current) || is_realtime(current)) |
83 | return 0; | 85 | return 0; |
84 | 86 | ||
85 | ktime_get_ts(&now); | 87 | ktime_get_ts(&now); |