提交 95140ed1 编写于 作者: A Arnd Bergmann

psci: add CPU_IDLE dependency

I ran into a build error for the psci_checker:

drivers/firmware/psci_checker.o: In function `psci_checker':
psci_checker.c:(.init.text+0x528): undefined reference to `cpuidle_devices'

As far as I can tell, this is simply a very rare combination of options,
but the problem has existed since the code was initially added.
Adding a Kconfig dependency makes it build properly.

Fixes: ea8b1c4a ("drivers: psci: PSCI checker module")
Acked-by: NKevin Brodsky <kevin.brodsky@arm.com>
Reviewed-by: NNishanth Menon <nm@ti.com>
Reviewed-by: NJean Delvare <jdelvare@suse.de>
Signed-off-by: NArnd Bergmann <arnd@arndb.de>
上级 c5b40c31
......@@ -10,7 +10,7 @@ config ARM_PSCI_FW
config ARM_PSCI_CHECKER
bool "ARM PSCI checker"
depends on ARM_PSCI_FW && HOTPLUG_CPU && !TORTURE_TEST
depends on ARM_PSCI_FW && HOTPLUG_CPU && CPU_IDLE && !TORTURE_TEST
help
Run the PSCI checker during startup. This checks that hotplug and
suspend operations work correctly when using PSCI.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册