Re: [PATCH 2/2] ARM: imx: select ARM_CPU_SUSPEND for CPU_IDLE as well

From: Shawn Guo
Date: Thu Mar 15 2018 - 20:50:41 EST


On Thu, Mar 15, 2018 at 04:13:19PM +0100, Arnd Bergmann wrote:
> 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.
>
> Signed-off-by: Arnd Bergmann <arnd@xxxxxxxx>

Acked-by: Shawn Guo <shawnguo@xxxxxxxxxx>