projects/linux·commit dd43f346

Merge branch 'timers-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip

dd43f346 · Linus Torvalds <[email protected]> · 2018-01-17 11:43:42 -08:00

Pull timer fix from Thomas Gleixner:
 "A one-liner fix which prevents deferrable timers becoming stale when
  the system does not switch into NOHZ mode"

* 'timers-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
  timers: Unconditionally check deferrable base
Commit
dd43f3465d138439db451a5e7ddccefc5af2fa85
Parents
8cbab92d · ed4bbf79

Merge commit. Changes below are compared with the first parent: 8cbab92d.

Changes

1 files changed · +1 −1

FileStatusAddDelContent
kernel/time/timer.cmodified+1−1View file

kernel/time/timer.c

View file
diff --git a/kernel/time/timer.c b/kernel/time/timer.c
index 89a9e1b..0bcf00e 100644
--- a/kernel/time/timer.c
+++ b/kernel/time/timer.c
@@ -1696,7 +1696,7 @@ void run_local_timers(void)
hrtimer_run_queues();
/* Raise the softirq only if required. */
if (time_before(jiffies, base->clk)) {
- if (!IS_ENABLED(CONFIG_NO_HZ_COMMON) || !base->nohz_active)
+ if (!IS_ENABLED(CONFIG_NO_HZ_COMMON))
return;
/* CPU is awake, so check the deferrable base. */
base++;