]> git.baikalelectronics.ru Git - kernel.git/commit
cpuidle: play_idle: Increase the resolution to usec
authorDaniel Lezcano <daniel.lezcano@linaro.org>
Fri, 2 Aug 2019 17:34:23 +0000 (19:34 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 3 Sep 2019 09:33:29 +0000 (11:33 +0200)
commit5a58dfe1ff2134d09f51a8d7fafdd2a8aab5da52
tree464c1a59817af384666f36669b3e0d5187be2ffe
parent1ffb38cdc04dad25ac6cd5a3e93dbcdfac8599e8
cpuidle: play_idle: Increase the resolution to usec

The play_idle resolution is 1ms. The intel_powerclamp bases the idle
duration on jiffies. The idle injection API is also using msec based
duration but has no user yet.

Unfortunately, msec based time does not fit well when we want to
inject idle cycle precisely with shallow idle state.

In order to set the scene for the incoming idle injection user, move
the precision up to usec when calling play_idle.

Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/powercap/idle_inject.c
drivers/thermal/intel/intel_powerclamp.c
include/linux/cpu.h
kernel/sched/idle.c