]> git.baikalelectronics.ru Git - kernel.git/commit
clockevents: enforce reprogram in oneshot setup
authorThomas Gleixner <tglx@linutronix.de>
Wed, 3 Sep 2008 21:37:03 +0000 (21:37 +0000)
committerThomas Gleixner <tglx@linutronix.de>
Fri, 5 Sep 2008 09:11:52 +0000 (11:11 +0200)
commit2e590901f19246a9ea11d6ab6a4f143e3f2ace81
tree7721904e6912a9dcd09fc4041dfb07807c2ef4b7
parentfdfc150945708cb51469840c0b2c35cae6e66380
clockevents: enforce reprogram in oneshot setup

In tick_oneshot_setup we program the device to the given next_event,
but we do not check the return value. We need to make sure that the
device is programmed enforced so the interrupt handler engine starts
working. Split out the reprogramming function from tick_program_event()
and call it with the device, which was handed in to tick_setup_oneshot().
Set the force argument, so the devices is firing an interrupt.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/time/tick-oneshot.c