aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/cpuidle.h
diff options
context:
space:
mode:
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>2018-05-30 13:43:01 +0200
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2018-05-30 23:13:00 +0200
commit0fc784fb09f6db8d6650aac137daa779da25c73b (patch)
tree2896a3243e31b5a220acbad7fb11c6a828243273 /include/linux/cpuidle.h
parentcpuidle: governors: Drop redundant checks related to PM QoS (diff)
downloadlinux-dev-0fc784fb09f6db8d6650aac137daa779da25c73b.tar.xz
linux-dev-0fc784fb09f6db8d6650aac137daa779da25c73b.zip
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.h1
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;}