ARM: Keep exit text/data around for SMP_ON_UP
commit9c7fa067fc9e25a086a8039192b20059c6d7d293
authorRussell King <rmk+kernel@arm.linux.org.uk>
Mon, 21 Feb 2011 10:13:36 +0000 (21 10:13 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 24 Feb 2011 22:54:37 +0000 (24 14:54 -0800)
tree5ce47b02318895c0e1e666d8977ac8c35c8323ec
parent854ea584c38a037f90fc9f7edcce0cd81232001f
ARM: Keep exit text/data around for SMP_ON_UP

commit a9ad21fed09cb95d34af9474be0831525b30c4c6 upstream.

When SMP_ON_UP is used and the spinlocks are inlined, we end up with
inline spinlocks in the exit code, with references from the SMP
alternatives section to the exit sections.  This causes link time
errors.  Avoid this by placing the exit sections in the init-discarded
region.

Tested-by: Dave Martin <dave.martin@linaro.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/arm/kernel/vmlinux.lds.S