OSDN Git Service

ARM: imx: select ARM_CPU_SUSPEND for CPU_IDLE as well
authorArnd Bergmann <arnd@arndb.de>
Mon, 5 Feb 2018 22:06:43 +0000 (23:06 +0100)
committerArnd Bergmann <arnd@arndb.de>
Tue, 27 Mar 2018 13:09:55 +0000 (15:09 +0200)
commitda395584b8614010f5dc386afc42cbcd368eed6c
treec9889c8f6c59d5a40ad0fed1641a5e17dfd032a4
parent0240f307213e4fb238eeacbf4bc18c7a13ac4774
ARM: imx: select ARM_CPU_SUSPEND for CPU_IDLE as well

The cpuidle support calls cpu_suspend(), which is compiled conditionally,
and fails to link unless something selects CONFIG_ARM_CPU_SUSPEND.

arch/arm/mach-imx/cpuidle-imx6sx.o: In function `imx6sx_enter_wait':
cpuidle-imx6sx.c:(.text+0x6c): undefined reference to `cpu_suspend'

This adds an explicit select statement here.

Acked-by: Shawn Guo <shawnguo@kernel.org>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
arch/arm/mach-imx/Kconfig