Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 169903
b: refs/heads/master
c: 710390d
h: refs/heads/master
i:
  169901: 9b63edb
  169899: 5809785
  169895: 718379f
  169887: 063efdc
v: v3
  • Loading branch information
Tim Blechmann authored and Ingo Molnar committed Nov 24, 2009
1 parent 653964c commit 2ba3f49
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 36ace27e3e60d44ea69ce394b2e45386ae98d9d9
refs/heads/master: 710390d90f143a9ebb87a475215140f426792efd
4 changes: 2 additions & 2 deletions trunk/kernel/sched.c
Original file line number Diff line number Diff line change
Expand Up @@ -2829,14 +2829,14 @@ context_switch(struct rq *rq, struct task_struct *prev,
*/
arch_start_context_switch(prev);

if (unlikely(!mm)) {
if (likely(!mm)) {
next->active_mm = oldmm;
atomic_inc(&oldmm->mm_count);
enter_lazy_tlb(oldmm, next);
} else
switch_mm(oldmm, mm, next);

if (unlikely(!prev->mm)) {
if (likely(!prev->mm)) {
prev->active_mm = NULL;
rq->prev_mm = oldmm;
}
Expand Down

0 comments on commit 2ba3f49

Please sign in to comment.