]> git.ipfire.org Git - thirdparty/kernel/stable.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 03:23:03 +0000 (20:23 -0700)
commitea16e1b4b005e8a574efce13fb57d0fdbc543d67
treebc4a08bc30fc70014451c49b8a0020b36f926a75
parentcf25095cf6e21b9abe299d709835db2d6338b2b5
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