diff options
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2018-05-30 14:43:01 +0300 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2018-05-31 00:13:00 +0300 |
commit | 0fc784fb09f6db8d6650aac137daa779da25c73b (patch) | |
tree | 2896a3243e31b5a220acbad7fb11c6a828243273 /include/linux/cpuidle.h | |
parent | cf7eeea947efaf2348dd87542508b1d426b948cd (diff) | |
download | linux-0fc784fb09f6db8d6650aac137daa779da25c73b.tar.xz |
cpuidle: governors: Consolidate PM QoS handling
There is some code duplication related to the PM QoS handling between
the existing cpuidle governors, so move that code to a common helper
function and call that from the governors.
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'include/linux/cpuidle.h')
-rw-r--r-- | include/linux/cpuidle.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/cpuidle.h b/include/linux/cpuidle.h index 1eefabf1621f..4325d6fdde9b 100644 --- a/include/linux/cpuidle.h +++ b/include/linux/cpuidle.h @@ -258,6 +258,7 @@ struct cpuidle_governor { #ifdef CONFIG_CPU_IDLE extern int cpuidle_register_governor(struct cpuidle_governor *gov); +extern int cpuidle_governor_latency_req(unsigned int cpu); #else static inline int cpuidle_register_governor(struct cpuidle_governor *gov) {return 0;} |