]> git.karo-electronics.de Git - karo-tx-linux.git/commit
powerpc/fsl-booke: Move loadcam_entry back to asm code to fix SMP ftrace
authorKumar Gala <galak@kernel.crashing.org>
Thu, 13 May 2010 19:38:21 +0000 (14:38 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 5 Jul 2010 18:22:20 +0000 (11:22 -0700)
commitb8504b8d34bf036b952c3f3b0f5cd5864d5f42e5
tree2d396b1c52f9307a30db12b844494d43384a0aeb
parent88693deb5838c3e0c69e03791ef7361ca77c8043
powerpc/fsl-booke: Move loadcam_entry back to asm code to fix SMP ftrace

commit 78f622377f7d31d988db350a43c5689dd5f31876 upstream.

When we build with ftrace enabled its possible that loadcam_entry would
have used the stack pointer (even though the code doesn't need it).  We
call loadcam_entry in __secondary_start before the stack is setup.  To
ensure that loadcam_entry doesn't use the stack pointer the easiest
solution is to just have it in asm code.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/powerpc/kernel/asm-offsets.c
arch/powerpc/mm/fsl_booke_mmu.c
arch/powerpc/mm/mmu_decl.h
arch/powerpc/mm/tlb_nohash_low.S