clockevents: prevent endless loop in periodic broadcast handler
authorThomas Gleixner <tglx@linutronix.de>
Wed, 3 Sep 2008 21:36:57 +0000 (21:36 +0000)
committerThomas Gleixner <tglx@linutronix.de>
Fri, 5 Sep 2008 09:11:51 +0000 (11:11 +0200)
The reprogramming of the periodic broadcast handler was broken,
when the first programming returned -ETIME. The clockevents code
stores the new expiry value in the clock events device next_event field
only when the programming time has not been elapsed yet. The loop in
question calculates the new expiry value from the next_event value
and therefor never increases.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Ingo Molnar <mingo@elte.hu>

No differences found