cpufreq: Use transition_delay_us for legacy governors as well
The policy->transition_delay_us field is used only by the schedutil governor currently, and this field describes how fast the driver wants the cpufreq governor to change CPUs frequency. It should rather be a common thing across all governors, as it doesn't have any schedutil dependency here. Create a new helper cpufreq_policy_transition_delay_us() to get the transition delay across all governors. Signed-off-by:Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by:
Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Showing
- drivers/cpufreq/cpufreq.c 15 additions, 0 deletionsdrivers/cpufreq/cpufreq.c
- drivers/cpufreq/cpufreq_governor.c 1 addition, 8 deletionsdrivers/cpufreq/cpufreq_governor.c
- include/linux/cpufreq.h 1 addition, 0 deletionsinclude/linux/cpufreq.h
- kernel/sched/cpufreq_schedutil.c 1 addition, 10 deletionskernel/sched/cpufreq_schedutil.c
Loading
Please register or sign in to comment