]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
clockevents: enforce reprogram in oneshot setup
authorThomas Gleixner <tglx@linutronix.de>
Wed, 3 Sep 2008 21:37:03 +0000 (21:37 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 9 Oct 2008 02:44:42 +0000 (19:44 -0700)
commite73068458bf253c2e738cd55080c3a54c61037ef
tree81535d6b9d39c12627af0a753e0cdae9983c20c9
parentfbbece349081a689d5687d9ebc769a847fdf423a
clockevents: enforce reprogram in oneshot setup

commit 7205656ab48da29a95d7f55e43a81db755d3cb3a upstream

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