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

Ingo Molnar
2009-01-11T04:06:23Z

* Benjamin LaHaise <bcrl@kvack.org> 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@kvack.org>

applied to tip/x86/asm, thanks Ben!

Ingo