aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/cpuidle/cpuidle.h
diff options
context:
space:
mode:
authorXunlei Pang <pang.xunlei@linaro.org>2015-08-04 01:48:56 -0400
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2015-08-28 09:14:54 -0400
commit4c1ed5a6079078699128064664913ae7b079648f (patch)
tree76c41b8fe9f3347195afbc345de623b0167d0ec8 /drivers/cpuidle/cpuidle.h
parentba6a860d41ed3a377d61d59d7c7b08dd7455c686 (diff)
cpuidle/coupled: Remove redundant 'dev' argument of cpuidle_state_is_coupled()
For cpuidle_state_is_coupled(), 'dev' is not used, so remove it. Signed-off-by: Xunlei Pang <pang.xunlei@linaro.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/cpuidle/cpuidle.h')
-rw-r--r--drivers/cpuidle/cpuidle.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/cpuidle/cpuidle.h b/drivers/cpuidle/cpuidle.h
index ee97e9672ecf..178c5ad3d568 100644
--- a/drivers/cpuidle/cpuidle.h
+++ b/drivers/cpuidle/cpuidle.h
@@ -34,15 +34,14 @@ extern int cpuidle_add_sysfs(struct cpuidle_device *dev);
34extern void cpuidle_remove_sysfs(struct cpuidle_device *dev); 34extern void cpuidle_remove_sysfs(struct cpuidle_device *dev);
35 35
36#ifdef CONFIG_ARCH_NEEDS_CPU_IDLE_COUPLED 36#ifdef CONFIG_ARCH_NEEDS_CPU_IDLE_COUPLED
37bool cpuidle_state_is_coupled(struct cpuidle_device *dev, 37bool cpuidle_state_is_coupled(struct cpuidle_driver *drv, int state);
38 struct cpuidle_driver *drv, int state);
39int cpuidle_enter_state_coupled(struct cpuidle_device *dev, 38int cpuidle_enter_state_coupled(struct cpuidle_device *dev,
40 struct cpuidle_driver *drv, int next_state); 39 struct cpuidle_driver *drv, int next_state);
41int cpuidle_coupled_register_device(struct cpuidle_device *dev); 40int cpuidle_coupled_register_device(struct cpuidle_device *dev);
42void cpuidle_coupled_unregister_device(struct cpuidle_device *dev); 41void cpuidle_coupled_unregister_device(struct cpuidle_device *dev);
43#else 42#else
44static inline bool cpuidle_state_is_coupled(struct cpuidle_device *dev, 43static inline
45 struct cpuidle_driver *drv, int state) 44bool cpuidle_state_is_coupled(struct cpuidle_driver *drv, int state)
46{ 45{
47 return false; 46 return false;
48} 47}