kernel_optimize_test/arch/arm/mach-at91
Arnd Bergmann dbeb0c8e84 ARM: at91: don't select CONFIG_ARM_CPU_SUSPEND for old platforms
My previous patch fixed a link error for all at91 platforms when
CONFIG_ARM_CPU_SUSPEND was not set, however this caused another
problem on a configuration that enabled CONFIG_ARCH_AT91 but none
of the individual SoCs, and that also enabled CPU_ARM720 as
the only CPU:

warning: (ARCH_AT91 && SOC_IMX23 && SOC_IMX28 && ARCH_PXA && MACH_MVEBU_V7 && SOC_IMX6 && ARCH_OMAP3 && ARCH_OMAP4 && SOC_OMAP5 && SOC_AM33XX && SOC_DRA7XX && ARCH_EXYNOS3 && ARCH_EXYNOS4 && EXYNOS5420_MCPM && EXYNOS_CPU_SUSPEND && ARCH_VEXPRESS_TC2_PM && ARM_BIG_LITTLE_CPUIDLE && ARM_HIGHBANK_CPUIDLE && QCOM_PM) selects ARM_CPU_SUSPEND which has unmet direct dependencies (ARCH_SUSPEND_POSSIBLE)
arch/arm/kernel/sleep.o: In function `cpu_resume':
(.text+0xf0): undefined reference to `cpu_arm720_suspend_size'
arch/arm/kernel/suspend.o: In function `__cpu_suspend_save':
suspend.c:(.text+0x134): undefined reference to `cpu_arm720_do_suspend'

This improves the hack some more by only selecting ARM_CPU_SUSPEND
for the part that requires it, and changing pm.c to drop the
contents of unused init functions so we no longer refer to
cpu_resume on at91 platforms that don't need it.

Fixes: cc7a938f5f ("ARM: at91: select CONFIG_ARM_CPU_SUSPEND")
Acked-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
2017-08-23 17:31:39 +02:00
..
at91rm9200.c ARM: at91: move SoC detection to its own driver 2017-03-31 20:36:10 +02:00
at91sam9.c ARM: at91: move SoC detection to its own driver 2017-03-31 20:36:10 +02:00
generic.h ARM: at91: pm: Add sama5d2 backup mode 2017-05-15 11:55:17 +02:00
Kconfig ARM: at91: don't select CONFIG_ARM_CPU_SUSPEND for old platforms 2017-08-23 17:31:39 +02:00
Makefile ARM: at91: handle CONFIG_PM for armv7m configurations 2017-06-02 10:11:44 +02:00
Makefile.boot ARM: at91: Add armv7m support 2017-06-02 10:11:38 +02:00
pm_data-offsets.c ARM: at91: pm: Add sama5d2 backup mode 2017-05-15 11:55:17 +02:00
pm_suspend.S ARM: at91: pm: Add sama5d2 backup mode 2017-05-15 11:55:17 +02:00
pm.c ARM: at91: don't select CONFIG_ARM_CPU_SUSPEND for old platforms 2017-08-23 17:31:39 +02:00
pm.h ARM: at91: pm: allow selecting standby and suspend modes 2017-05-15 11:55:24 +02:00
sama5.c ARM: at91: pm: Add sama5d2 backup mode 2017-05-15 11:55:17 +02:00
samv7.c ARM: at91: fix at91_suspend_entering_slow_clock link error 2017-06-13 11:51:11 +02:00