hrtimer: fixup comments

Clean up the comments

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
This commit is contained in:
Thomas Gleixner 2009-01-05 11:28:23 +01:00 committed by Ingo Molnar
parent a6037b61c2
commit e3f1d88374
1 changed files with 9 additions and 11 deletions

View File

@ -1143,9 +1143,9 @@ static void __run_hrtimer(struct hrtimer *timer)
spin_lock(&cpu_base->lock); spin_lock(&cpu_base->lock);
/* /*
* Note: We clear the CALLBACK bit after enqueue_hrtimer to avoid * Note: We clear the CALLBACK bit after enqueue_hrtimer and
* reprogramming of the event hardware. This happens at the end of this * we do not reprogramm the event hardware. Happens either in
* function anyway. * hrtimer_start_range_ns() or in hrtimer_interrupt()
*/ */
if (restart != HRTIMER_NORESTART) { if (restart != HRTIMER_NORESTART) {
BUG_ON(timer->state != HRTIMER_STATE_CALLBACK); BUG_ON(timer->state != HRTIMER_STATE_CALLBACK);
@ -1514,14 +1514,12 @@ static void migrate_hrtimer_list(struct hrtimer_clock_base *old_base,
__remove_hrtimer(timer, old_base, HRTIMER_STATE_MIGRATE, 0); __remove_hrtimer(timer, old_base, HRTIMER_STATE_MIGRATE, 0);
timer->base = new_base; timer->base = new_base;
/* /*
* Enqueue the timers on the new cpu, but do not reprogram * Enqueue the timers on the new cpu. This does not
* the timer as that would enable a deadlock between * reprogram the event device in case the timer
* hrtimer_enqueue_reprogramm() running the timer and us still * expires before the earliest on this CPU, but we run
* holding a nested base lock. * hrtimer_interrupt after we migrated everything to
* * sort out already expired timers and reprogram the
* Instead we tickle the hrtimer interrupt after the migration * event device.
* is done, which will run all expired timers and re-programm
* the timer device.
*/ */
enqueue_hrtimer(timer, new_base); enqueue_hrtimer(timer, new_base);