]> git.karo-electronics.de Git - karo-tx-linux.git/commit
acpi: intel_idle : break dependency between modules
authorDaniel Lezcano <daniel.lezcano@linaro.org>
Fri, 29 Jun 2012 09:45:54 +0000 (11:45 +0200)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Fri, 29 Jun 2012 09:45:54 +0000 (11:45 +0200)
commit3cf7997a389de59498c966c529456696ce8bc1a7
tree776260c7566f0f95ebccffa603a4fe75aa467577
parent3b4e9a87f72fc7326948777faed7623be457afc7
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>
Acked-by: Rafael J. Wysocki <rjw@sisk.pl>
drivers/acpi/processor_driver.c
drivers/idle/intel_idle.c
include/linux/cpuidle.h