cpufreq: Use transition_delay_us for legacy governors as well
authorViresh Kumar <viresh.kumar@linaro.org>
Wed, 19 Jul 2017 10:12:42 +0000 (15:42 +0530)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Sat, 22 Jul 2017 00:25:20 +0000 (02:25 +0200)
commitaa7519af450d3c62a057aece24877c34562fa25a
tree664a918cbe1bcd0de3e162f247197946ff578001
parent2d045036322c29b69c22f06530f1130338d06373
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>
drivers/cpufreq/cpufreq.c
drivers/cpufreq/cpufreq_governor.c
include/linux/cpufreq.h
kernel/sched/cpufreq_schedutil.c