clockevents: fix resume logic
authorThomas Gleixner <tglx@linutronix.de>
Sat, 21 Jul 2007 11:37:34 +0000 (04:37 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Sun, 22 Jul 2007 00:49:15 +0000 (17:49 -0700)
commit18de5bc4c1f1f1fa5e14f354a7603bd6e9d4e3b6
treecb0ff399fb3f368adecf213318e32a499ada6ff9
parent93da56efcf8c6a111f0349f6b7651172d4745ca0
clockevents: fix resume logic

We need to make sure, that the clockevent devices are resumed, before
the tick is resumed. The current resume logic does not guarantee this.

Add CLOCK_EVT_MODE_RESUME and call the set mode functions of the clock
event devices before resuming the tick / oneshot functionality.

Fixup the existing users.

Thanks to Nigel Cunningham for tracking down a long standing thinko,
which affected the jinxed VAIO.

[akpm@linux-foundation.org: xen build fix]
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: john stultz <johnstul@us.ibm.com>
Cc: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
16 files changed:
arch/arm/mach-davinci/time.c
arch/arm/mach-imx/time.c
arch/arm/mach-ixp4xx/common.c
arch/arm/mach-omap1/time.c
arch/arm/plat-omap/timer32k.c
arch/i386/kernel/apic.c
arch/i386/kernel/hpet.c
arch/i386/kernel/i8253.c
arch/i386/kernel/vmiclock.c
arch/i386/xen/time.c
arch/sh/kernel/timers/timer-tmu.c
arch/sparc64/kernel/time.c
drivers/lguest/lguest.c
include/linux/clockchips.h
kernel/time/tick-broadcast.c
kernel/time/tick-common.c