Re: [PATCH] x86-64: remove locked instruction from switch_to()

From: Ingo Molnar
Date: Sat Jan 10 2009 - 23:06:24 EST



* Benjamin LaHaise <bcrl@xxxxxxxxx> wrote:

> Here is a rediffed and test booted version of the patch against linus' git
> tree as of a couple of hours ago.
>
> The patch below removes an unnecessary locked instruction from
> switch_to(). TIF_FORK is only ever set in copy_thread() on initial
> process creation, and gets cleared during the first scheduling of the
> process. As such, it is safe to use an unlocked test for the flag
> within switch_to()./
>
> Signed-off-by: Benjamin LaHaise <bcrl@xxxxxxxxx>

applied to tip/x86/asm, thanks Ben!

Ingo
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/