diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2008-10-04 12:15:13 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-10-04 12:15:13 -0700 |
commit | fec6ed1d1f9b78a6acb4a3eb2c46c812ac2e96f0 (patch) | |
tree | ba05fcc4a5339ca61bbc69cf55c5110b7f76b1df | |
parent | b8ec322784f732562902503d70bf1f5e907b28c0 (diff) | |
parent | 07454bfff151d2465ada809bbaddf3548cc1097c (diff) | |
download | kernel-crypto-fec6ed1d1f9b78a6acb4a3eb2c46c812ac2e96f0.tar.gz kernel-crypto-fec6ed1d1f9b78a6acb4a3eb2c46c812ac2e96f0.tar.xz kernel-crypto-fec6ed1d1f9b78a6acb4a3eb2c46c812ac2e96f0.zip |
Merge branch 'timers-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip
* 'timers-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
clockevents: check broadcast tick device not the clock events device
-rw-r--r-- | kernel/time/tick-broadcast.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/kernel/time/tick-broadcast.c b/kernel/time/tick-broadcast.c index bd703454239..cb01cd8f919 100644 --- a/kernel/time/tick-broadcast.c +++ b/kernel/time/tick-broadcast.c @@ -235,7 +235,8 @@ static void tick_do_broadcast_on_off(void *why) case CLOCK_EVT_NOTIFY_BROADCAST_FORCE: if (!cpu_isset(cpu, tick_broadcast_mask)) { cpu_set(cpu, tick_broadcast_mask); - if (bc->mode == TICKDEV_MODE_PERIODIC) + if (tick_broadcast_device.mode == + TICKDEV_MODE_PERIODIC) clockevents_shutdown(dev); } if (*reason == CLOCK_EVT_NOTIFY_BROADCAST_FORCE) @@ -245,7 +246,8 @@ static void tick_do_broadcast_on_off(void *why) if (!tick_broadcast_force && cpu_isset(cpu, tick_broadcast_mask)) { cpu_clear(cpu, tick_broadcast_mask); - if (bc->mode == TICKDEV_MODE_PERIODIC) + if (tick_broadcast_device.mode == + TICKDEV_MODE_PERIODIC) tick_setup_periodic(dev, 0); } break; |