diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2016-09-04 08:43:45 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2016-09-04 08:43:45 -0700 |
commit | 1c3333600b0ebca94edffb3bb431c78687dc3d36 (patch) | |
tree | 798b72afb270e98bbe434443510415c49e671a97 /kernel | |
parent | 28e68154c5e2793123b248d38cf17b34dcb16d87 (diff) | |
parent | 08d072599234c959b0b82b63fa252c129225a899 (diff) | |
download | linux-stable-1c3333600b0ebca94edffb3bb431c78687dc3d36.tar.gz linux-stable-1c3333600b0ebca94edffb3bb431c78687dc3d36.tar.bz2 linux-stable-1c3333600b0ebca94edffb3bb431c78687dc3d36.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:
"Two fixlet from the timers departement:
- A fix for scheduler stalls in the tick idle code affecting
NOHZ_FULL kernels
- A trivial compile fix"
* 'timers-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
tick/nohz: Fix softlockup on scheduler stalls in kvm guest
clocksource/drivers/atmel-pit: Fix compilation error
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/time/tick-sched.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/time/tick-sched.c b/kernel/time/tick-sched.c index 204fdc86863d..2ec7c00228f3 100644 --- a/kernel/time/tick-sched.c +++ b/kernel/time/tick-sched.c @@ -908,10 +908,11 @@ static void __tick_nohz_idle_enter(struct tick_sched *ts) ktime_t now, expires; int cpu = smp_processor_id(); + now = tick_nohz_start_idle(ts); + if (can_stop_idle_tick(cpu, ts)) { int was_stopped = ts->tick_stopped; - now = tick_nohz_start_idle(ts); ts->idle_calls++; expires = tick_nohz_stop_sched_tick(ts, now, cpu); |