diff options
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2018-03-16 01:07:41 +0300 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2018-04-05 20:01:29 +0300 |
commit | ed98c34919985a9f87c3edacb9a8d8c283c9e243 (patch) | |
tree | 342bb5a1961b6c594a38706f7ed6a5048ae63f29 /drivers/cpuidle/cpuidle.c | |
parent | 2aaf709a518d26563b80fd7a42379d7aa7ffed4a (diff) | |
download | linux-ed98c34919985a9f87c3edacb9a8d8c283c9e243.tar.xz |
sched: idle: Do not stop the tick before cpuidle_idle_call()
Make cpuidle_idle_call() decide whether or not to stop the tick.
First, the cpuidle_enter_s2idle() path deals with the tick (and with
the entire timekeeping for that matter) by itself and it doesn't need
the tick to be stopped beforehand.
Second, to address the issue with short idle duration predictions
by the idle governor after the tick has been stopped, it will be
necessary to change the ordering of cpuidle_select() with respect
to tick_nohz_idle_stop_tick(). To prepare for that, put a
tick_nohz_idle_stop_tick() call in the same branch in which
cpuidle_select() is called.
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Frederic Weisbecker <frederic@kernel.org>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Diffstat (limited to 'drivers/cpuidle/cpuidle.c')
0 files changed, 0 insertions, 0 deletions