speed up kernel_thread

Scott Wood scottwood at freescale.com
Thu Mar 8 09:01:04 EST 2007


On Wed, Mar 07, 2007 at 03:29:10PM -0600, Anton Blanchard wrote:
> Index: linux-2.6/arch/powerpc/kernel/misc_32.S
> ===================================================================
> --- linux-2.6.orig/arch/powerpc/kernel/misc_32.S	2007-03-07 14:27:57.000000000 -0600
> +++ linux-2.6/arch/powerpc/kernel/misc_32.S	2007-03-07 15:15:16.000000000 -0600
[snip]
> +_GLOBAL(kernel_thread_helper)
> +	li	r0,0
> +	mtctr	r15
> +	stdu	r0,-STACK_FRAME_OVERHEAD(r1)

Shouldn't this be stwu on 32-bit?

-Scott



More information about the Linuxppc-dev mailing list