Skip to content
Commit 7106a5ab authored by Benjamin LaHaise's avatar Benjamin LaHaise Committed by Ingo Molnar
Browse files

x86-64: remove locked instruction from switch_to()



Impact: micro-optimization

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: default avatarBenjamin LaHaise <bcrl@kvack.org>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent c5976504
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment