]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit97ec3a96e0172341e0266da4a5f42d0baea1f5a3
tree441f714bf32592797d1cf4c6c375e47e324ffded
parent721ef5d5bc38db8dda25a0d8b3b5676870f1d3af
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