]> git.baikalelectronics.ru Git - kernel.git/commit
sched: idle: Avoid retaining the tick when it has been stopped
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 9 Aug 2018 17:08:34 +0000 (19:08 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 20 Aug 2018 09:25:55 +0000 (11:25 +0200)
commit80d31dbecd1c5359ef4e3050b4c3cae5c0d2a9c8
tree8f84724860a3ab59460d3cff6c5b9f607c7419c3
parent4ca5b714fd09da86795347d70b8d9be28ffdacb7
sched: idle: Avoid retaining the tick when it has been stopped

If the tick has been stopped already, but the governor has not asked to
stop it (which it can do sometimes), the idle loop should invoke
tick_nohz_idle_stop_tick(), to let tick_nohz_stop_tick() take care
of this case properly.

Fixes: 001c459bbb6e (sched: idle: Select idle state before stopping the tick)
Cc: 4.17+ <stable@vger.kernel.org> # 4.17+
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
kernel/sched/idle.c