Commit be8147e6 authored by Tim Blechmann's avatar Tim Blechmann Committed by Ingo Molnar

Revert "sched, x86: Optimize branch hint in __switch_to()"

This reverts commit a3a1de0c.

Commit 8ec6993d cleared the es
and ds selectors, so the original branch hints are correct now.
Therefore the branch hint doesn't need to be removed.
Signed-off-by: default avatarTim Blechmann <tim@klingt.org>
LKML-Reference: <4B16503A.8030508@klingt.org>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent bdddd296
......@@ -406,10 +406,11 @@ __switch_to(struct task_struct *prev_p, struct task_struct *next_p)
* This won't pick up thread selector changes, but I guess that is ok.
*/
savesegment(es, prev->es);
if (next->es | prev->es)
if (unlikely(next->es | prev->es))
loadsegment(es, next->es);
savesegment(ds, prev->ds);
if (next->ds | prev->ds)
if (unlikely(next->ds | prev->ds))
loadsegment(ds, next->ds);
......
Markdown is supported
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