mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 03:36:19 +00:00
Revert "sched, x86: Optimize branch hint in __switch_to()"
This reverts commita3a1de0c34
. Commit8ec6993d9f
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: Tim Blechmann <tim@klingt.org> LKML-Reference: <4B16503A.8030508@klingt.org> Signed-off-by: Ingo Molnar <mingo@elte.hu>
This commit is contained in:
parent
bdddd2963c
commit
be8147e686
1 changed files with 3 additions and 2 deletions
|
@ -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);
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue