ARM: realview: build realview-dt SMP support only when used
authorArnd Bergmann <arnd@arndb.de>
Fri, 18 Dec 2015 16:01:58 +0000 (17:01 +0100)
committerArnd Bergmann <arnd@arndb.de>
Fri, 18 Dec 2015 16:03:59 +0000 (17:03 +0100)
commit3f93c644c92db1abb6149da712713132e0b37cfc
treef12359be218bf9d6a84a5078ac71d5e515064b0d
parent86fff036fe95600dab337f37577b77742b89833c
ARM: realview: build realview-dt SMP support only when used

The platsmp-dt.c file does not build when CONFIG_SMP is disabled:

platsmp-dt.c:84:2: error: unknown field 'smp_prepare_cpus' specified in initializer

This changes the Makefile to build it conditionally on CONFIG_SMP.
The legacy platsmp.c file is only used for ATAGS based builds, so
we can move it into the CONFIG_ATAGS conditional.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
arch/arm/mach-realview/Makefile