UPSTREAM: 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: 554c8aa8ecad (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>
(cherry picked from commit 7059b36636beab57c3c43c62104483e5449bee95)
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: Ie02ba2729ac7430c976777682542e2935bede377
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
1 file changed