diff options
Diffstat (limited to 'kernel/posix-cpu-timers.c')
-rw-r--r-- | kernel/posix-cpu-timers.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/posix-cpu-timers.c b/kernel/posix-cpu-timers.c index 2c076b36c4f6..0b7c82ac467e 100644 --- a/kernel/posix-cpu-timers.c +++ b/kernel/posix-cpu-timers.c | |||
@@ -1020,7 +1020,8 @@ static void check_thread_timers(struct task_struct *tsk, | |||
1020 | unsigned long hard = sig->rlim[RLIMIT_RTTIME].rlim_max; | 1020 | unsigned long hard = sig->rlim[RLIMIT_RTTIME].rlim_max; |
1021 | unsigned long *soft = &sig->rlim[RLIMIT_RTTIME].rlim_cur; | 1021 | unsigned long *soft = &sig->rlim[RLIMIT_RTTIME].rlim_cur; |
1022 | 1022 | ||
1023 | if (tsk->rt.timeout > DIV_ROUND_UP(hard, USEC_PER_SEC/HZ)) { | 1023 | if (hard != RLIM_INFINITY && |
1024 | tsk->rt.timeout > DIV_ROUND_UP(hard, USEC_PER_SEC/HZ)) { | ||
1024 | /* | 1025 | /* |
1025 | * At the hard limit, we just die. | 1026 | * At the hard limit, we just die. |
1026 | * No need to calculate anything else now. | 1027 | * No need to calculate anything else now. |