ACPI: intel_idle : break dependency between modules
authorDaniel Lezcano <daniel.lezcano@linaro.org>
Thu, 5 Jul 2012 13:23:25 +0000 (15:23 +0200)
committerRafael J. Wysocki <rjw@sisk.pl>
Thu, 5 Jul 2012 20:37:47 +0000 (22:37 +0200)
commit25ac77613aa8fca131599705e3d7da2a0eaa06a0
tree441f714bf32592797d1cf4c6c375e47e324ffded
parent6e797a078824b30afbfae6cc4b1c2b21c51761ef
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>
drivers/acpi/processor_driver.c
drivers/idle/intel_idle.c
include/linux/cpuidle.h