diff options
| author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2020-11-10 20:26:37 +0300 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-11-18 21:22:30 +0300 |
| commit | 960908eb18ddf95dca07c74744bd9eeb7dca8a6a (patch) | |
| tree | f2f972ecc4a3004e69d7f655bc9be1bc46ef04c9 /include/linux | |
| parent | ddd0dd03fcce5b4516b35e14a21822cc526fff52 (diff) | |
| download | linux-960908eb18ddf95dca07c74744bd9eeb7dca8a6a.tar.xz | |
cpufreq: Add strict_target to struct cpufreq_policy
commit ea9364bbadf11f0c55802cf11387d74f524cee84 upstream.
Add a new field to be set when the CPUFREQ_GOV_STRICT_TARGET flag is
set for the current governor to struct cpufreq_policy, so that the
drivers needing to check CPUFREQ_GOV_STRICT_TARGET do not have to
access the governor object during every frequency transition.
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/cpufreq.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/cpufreq.h b/include/linux/cpufreq.h index 47ab3cb11334..e7170bf019eb 100644 --- a/include/linux/cpufreq.h +++ b/include/linux/cpufreq.h @@ -110,6 +110,12 @@ struct cpufreq_policy { bool fast_switch_enabled; /* + * Set if the CPUFREQ_GOV_STRICT_TARGET flag is set for the current + * governor. + */ + bool strict_target; + + /* * Preferred average time interval between consecutive invocations of * the driver to set the frequency for this policy. To be set by the * scaling driver (0, which is the default, means no preference). |
