]> git.karo-electronics.de Git - karo-tx-linux.git/commit
clockevents: prevent endless loop in periodic broadcast handler
authorThomas Gleixner <tglx@linutronix.de>
Wed, 3 Sep 2008 21:36:57 +0000 (21:36 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 9 Oct 2008 03:23:03 +0000 (20:23 -0700)
commitcf25095cf6e21b9abe299d709835db2d6338b2b5
tree32d7aae7034c3412cb6ff0fb91db39fa1bc99fc7
parent2a2bac600a84eedf9d9dd6766232640876593856
clockevents: prevent endless loop in periodic broadcast handler

commit d4496b39559c6d43f83e4c08b899984f8b8089b5 upstream

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
kernel/time/tick-broadcast.c