|
@@ -887,6 +887,9 @@ static void __remove_hrtimer(struct hrtimer *timer,
|
|
|
|
|
|
next_timer = timerqueue_getnext(&base->active);
|
|
next_timer = timerqueue_getnext(&base->active);
|
|
timerqueue_del(&base->active, &timer->node);
|
|
timerqueue_del(&base->active, &timer->node);
|
|
|
|
+ if (!timerqueue_getnext(&base->active))
|
|
|
|
+ base->cpu_base->active_bases &= ~(1 << base->index);
|
|
|
|
+
|
|
if (&timer->node == next_timer) {
|
|
if (&timer->node == next_timer) {
|
|
#ifdef CONFIG_HIGH_RES_TIMERS
|
|
#ifdef CONFIG_HIGH_RES_TIMERS
|
|
/* Reprogram the clock event device. if enabled */
|
|
/* Reprogram the clock event device. if enabled */
|
|
@@ -900,8 +903,6 @@ static void __remove_hrtimer(struct hrtimer *timer,
|
|
}
|
|
}
|
|
#endif
|
|
#endif
|
|
}
|
|
}
|
|
- if (!timerqueue_getnext(&base->active))
|
|
|
|
- base->cpu_base->active_bases &= ~(1 << base->index);
|
|
|
|
out:
|
|
out:
|
|
timer->state = newstate;
|
|
timer->state = newstate;
|
|
}
|
|
}
|