diff options
author | Daniel Lezcano <daniel.lezcano@linaro.org> | 2012-07-05 09:23:25 -0400 |
---|---|---|
committer | Rafael J. Wysocki <rjw@sisk.pl> | 2012-07-05 16:37:47 -0400 |
commit | 25ac77613aa8fca131599705e3d7da2a0eaa06a0 (patch) | |
tree | 441f714bf32592797d1cf4c6c375e47e324ffded /include/linux/cpuidle.h | |
parent | 6e797a078824b30afbfae6cc4b1c2b21c51761ef (diff) |
ACPI: intel_idle : break dependency between modules
When the system is booted with some cpus offline, the idle
driver is not initialized. When a cpu is set online, the
acpi code call the intel idle init function. Unfortunately
this code introduce a dependency between intel_idle and acpi.
This patch is intended to remove this dependency by using the
notifier of intel_idle. This patch has the benefit of
encapsulating the intel_idle driver and remove some exported
functions.
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Acked-by: Srivatsa S. Bhat <srivatsa.bhat@linux.vnet.ibm.com>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Diffstat (limited to 'include/linux/cpuidle.h')
-rw-r--r-- | include/linux/cpuidle.h | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/include/linux/cpuidle.h b/include/linux/cpuidle.h index 27cfced7b57b..524bb6f3b6c4 100644 --- a/include/linux/cpuidle.h +++ b/include/linux/cpuidle.h | |||
@@ -206,14 +206,7 @@ struct cpuidle_governor { | |||
206 | extern int cpuidle_register_governor(struct cpuidle_governor *gov); | 206 | extern int cpuidle_register_governor(struct cpuidle_governor *gov); |
207 | extern void cpuidle_unregister_governor(struct cpuidle_governor *gov); | 207 | extern void cpuidle_unregister_governor(struct cpuidle_governor *gov); |
208 | 208 | ||
209 | #ifdef CONFIG_INTEL_IDLE | ||
210 | extern int intel_idle_cpu_init(int cpu); | ||
211 | #else | 209 | #else |
212 | static inline int intel_idle_cpu_init(int cpu) { return -1; } | ||
213 | #endif | ||
214 | |||
215 | #else | ||
216 | static inline int intel_idle_cpu_init(int cpu) { return -1; } | ||
217 | 210 | ||
218 | static inline int cpuidle_register_governor(struct cpuidle_governor *gov) | 211 | static inline int cpuidle_register_governor(struct cpuidle_governor *gov) |
219 | {return 0;} | 212 | {return 0;} |