diff options
Diffstat (limited to 'kernel/posix-timers.c')
-rw-r--r-- | kernel/posix-timers.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/kernel/posix-timers.c b/kernel/posix-timers.c index 36d563fd9e3b..122d5c787fe2 100644 --- a/kernel/posix-timers.c +++ b/kernel/posix-timers.c | |||
@@ -256,8 +256,9 @@ static void schedule_next_timer(struct k_itimer *timr) | |||
256 | if (timr->it.real.interval.tv64 == 0) | 256 | if (timr->it.real.interval.tv64 == 0) |
257 | return; | 257 | return; |
258 | 258 | ||
259 | timr->it_overrun += hrtimer_forward(timer, timer->base->get_time(), | 259 | timr->it_overrun += (unsigned int) hrtimer_forward(timer, |
260 | timr->it.real.interval); | 260 | timer->base->get_time(), |
261 | timr->it.real.interval); | ||
261 | 262 | ||
262 | timr->it_overrun_last = timr->it_overrun; | 263 | timr->it_overrun_last = timr->it_overrun; |
263 | timr->it_overrun = -1; | 264 | timr->it_overrun = -1; |
@@ -386,7 +387,7 @@ static enum hrtimer_restart posix_timer_fn(struct hrtimer *timer) | |||
386 | now = ktime_add(now, kj); | 387 | now = ktime_add(now, kj); |
387 | } | 388 | } |
388 | #endif | 389 | #endif |
389 | timr->it_overrun += | 390 | timr->it_overrun += (unsigned int) |
390 | hrtimer_forward(timer, now, | 391 | hrtimer_forward(timer, now, |
391 | timr->it.real.interval); | 392 | timr->it.real.interval); |
392 | ret = HRTIMER_RESTART; | 393 | ret = HRTIMER_RESTART; |
@@ -662,7 +663,7 @@ common_timer_get(struct k_itimer *timr, struct itimerspec *cur_setting) | |||
662 | */ | 663 | */ |
663 | if (iv.tv64 && (timr->it_requeue_pending & REQUEUE_PENDING || | 664 | if (iv.tv64 && (timr->it_requeue_pending & REQUEUE_PENDING || |
664 | (timr->it_sigev_notify & ~SIGEV_THREAD_ID) == SIGEV_NONE)) | 665 | (timr->it_sigev_notify & ~SIGEV_THREAD_ID) == SIGEV_NONE)) |
665 | timr->it_overrun += hrtimer_forward(timer, now, iv); | 666 | timr->it_overrun += (unsigned int) hrtimer_forward(timer, now, iv); |
666 | 667 | ||
667 | remaining = ktime_sub(timer->expires, now); | 668 | remaining = ktime_sub(timer->expires, now); |
668 | /* Return 0 only, when the timer is expired and not pending */ | 669 | /* Return 0 only, when the timer is expired and not pending */ |