Message ID | 1410556944-14944-4-git-send-email-john.stultz@linaro.org |
---|---|
State | Accepted |
Commit | 265b81d23a46c39df0a735a3af4238954b41a4c2 |
Headers | show |
diff --git a/kernel/time/alarmtimer.c b/kernel/time/alarmtimer.c index b4bce62..41a9253 100644 --- a/kernel/time/alarmtimer.c +++ b/kernel/time/alarmtimer.c @@ -466,8 +466,10 @@ static enum alarmtimer_restart alarm_handle_timer(struct alarm *alarm, { struct k_itimer *ptr = container_of(alarm, struct k_itimer, it.alarm.alarmtimer); - if (posix_timer_event(ptr, 0) != 0) - ptr->it_overrun++; + if ((ptr->it_sigev_notify & ~SIGEV_THREAD_ID) != SIGEV_NONE) { + if (posix_timer_event(ptr, 0) != 0) + ptr->it_overrun++; + } /* Re-add periodic timers */ if (ptr->it.alarm.interval.tv64) {