ARM: SMP: ensure frame pointer is reinitialized for soft-CPU hotplug
authorRussell King <rmk+kernel@arm.linux.org.uk>
Mon, 20 Dec 2010 16:58:19 +0000 (16:58 +0000)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Mon, 20 Dec 2010 16:58:19 +0000 (16:58 +0000)
commitfaabfa0816916b0a7cfc93f6a9be382830658c80
tree95b003cd7a92c20e4212ab7d315fc75287f91bd8
parent03b505eae6a276b8c38b6222694afb6cea10b1cc
ARM: SMP: ensure frame pointer is reinitialized for soft-CPU hotplug

When we soft-CPU hotplug a CPU, we reset the stack pointer and
jump back to start_secondary().  This allows us to restart as if
the CPU was actually reset.

However, we weren't resetting the frame pointer, which could cause
problems with backtracing.  Reset the frame pointer to zero (which
means no parent frame) just like the early assembly code also does.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/kernel/smp.c