]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: exynos: fix l2x0 saved regs handling
authorArnd Bergmann <arnd@arndb.de>
Thu, 13 Mar 2014 16:25:52 +0000 (17:25 +0100)
committerArnd Bergmann <arnd@arndb.de>
Fri, 21 Mar 2014 17:26:24 +0000 (18:26 +0100)
commit46f611a507280e1907768266cbc8b0caa3ed1bd2
tree156760fb7d67706206b835be9c80b0f44131bd84
parent458bbf1511d0294b6815ae62951a1a6d1165e5b0
ARM: exynos: fix l2x0 saved regs handling

The exynos4_l2x0_cache_init function tries to flush the data cache
for the location of the saved l2x0 registers and pass the physical
address to the s5p-sleep implementation.

However, the s5p-sleep code is optional, and if it is disabled,
we get a linker error here when the l2x0_regs_phys variable does
not exist.

To solve this, use a compile-time conditional to drop this code
if we don't want it.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Kukjin Kim <kgene.kim@samsung.com>
Cc: Tomasz Figa <tomasz.figa@gmail.com>
Cc: Ben Dooks <ben-linux@fluff.org>
arch/arm/mach-exynos/common.c