diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2014-04-17 16:19:10 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-04-17 16:19:10 -0700 |
commit | 87a54cae0ba094de2ddb7e5f429fd32b965a2fbf (patch) | |
tree | c8a990e39250a2c3ee8b47448d4252fc3da55c9b /kernel/time/tick-common.c | |
parent | 81cef0fe19e086ff6abfd45e92246f68ffa0185f (diff) | |
parent | 27630532ef5ead28b98cfe28d8f95222ef91c2b7 (diff) | |
download | linux-87a54cae0ba094de2ddb7e5f429fd32b965a2fbf.tar.gz linux-87a54cae0ba094de2ddb7e5f429fd32b965a2fbf.tar.bz2 linux-87a54cae0ba094de2ddb7e5f429fd32b965a2fbf.zip |
Merge branch 'timers-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull timer fixes from Thomas Gleixner:
"Viresh unearthed the following three hickups in the timer/timekeeping
code:
- Negated check for the result of a clock event selection
- A missing early exit in the jiffies update path which causes
update_wall_time to be called for nothing causing lock contention
and wasted cycles in the timer interrupt
- Checking a variable in the NOHZ code enable code for true which can
only be set by that very code after the check succeeds. That
results in a rock solid runtime disablement of that feature"
* 'timers-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
tick-sched: Check tick_nohz_enabled in tick_nohz_switch_to_nohz()
tick-sched: Don't call update_wall_time() when delta is lesser than tick_period
tick-common: Fix wrong check in tick_check_replacement()
Diffstat (limited to 'kernel/time/tick-common.c')
-rw-r--r-- | kernel/time/tick-common.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/time/tick-common.c b/kernel/time/tick-common.c index 015661279b68..0a0608edeb26 100644 --- a/kernel/time/tick-common.c +++ b/kernel/time/tick-common.c @@ -276,7 +276,7 @@ static bool tick_check_preferred(struct clock_event_device *curdev, bool tick_check_replacement(struct clock_event_device *curdev, struct clock_event_device *newdev) { - if (tick_check_percpu(curdev, newdev, smp_processor_id())) + if (!tick_check_percpu(curdev, newdev, smp_processor_id())) return false; return tick_check_preferred(curdev, newdev); |