diff options
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2018-05-30 07:43:01 -0400 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2018-05-30 17:13:00 -0400 |
commit | 0fc784fb09f6db8d6650aac137daa779da25c73b (patch) | |
tree | 2896a3243e31b5a220acbad7fb11c6a828243273 /include/linux/cpuidle.h | |
parent | cf7eeea947efaf2348dd87542508b1d426b948cd (diff) |
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 { | |||
258 | 258 | ||
259 | #ifdef CONFIG_CPU_IDLE | 259 | #ifdef CONFIG_CPU_IDLE |
260 | extern int cpuidle_register_governor(struct cpuidle_governor *gov); | 260 | extern int cpuidle_register_governor(struct cpuidle_governor *gov); |
261 | extern int cpuidle_governor_latency_req(unsigned int cpu); | ||
261 | #else | 262 | #else |
262 | static inline int cpuidle_register_governor(struct cpuidle_governor *gov) | 263 | static inline int cpuidle_register_governor(struct cpuidle_governor *gov) |
263 | {return 0;} | 264 | {return 0;} |