diff options
| -rw-r--r-- | kernel/sched.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/kernel/sched.c b/kernel/sched.c index d714611f1691..e9a0b61f12ab 100644 --- a/kernel/sched.c +++ b/kernel/sched.c | |||
| @@ -1788,7 +1788,15 @@ context_switch(struct rq *rq, struct task_struct *prev, | |||
| 1788 | WARN_ON(rq->prev_mm); | 1788 | WARN_ON(rq->prev_mm); |
| 1789 | rq->prev_mm = oldmm; | 1789 | rq->prev_mm = oldmm; |
| 1790 | } | 1790 | } |
| 1791 | /* | ||
| 1792 | * Since the runqueue lock will be released by the next | ||
| 1793 | * task (which is an invalid locking op but in the case | ||
| 1794 | * of the scheduler it's an obvious special-case), so we | ||
| 1795 | * do an early lockdep release here: | ||
| 1796 | */ | ||
| 1797 | #ifndef __ARCH_WANT_UNLOCKED_CTXSW | ||
| 1791 | spin_release(&rq->lock.dep_map, 1, _THIS_IP_); | 1798 | spin_release(&rq->lock.dep_map, 1, _THIS_IP_); |
| 1799 | #endif | ||
| 1792 | 1800 | ||
| 1793 | /* Here we just switch the register state and the stack. */ | 1801 | /* Here we just switch the register state and the stack. */ |
| 1794 | switch_to(prev, next, prev); | 1802 | switch_to(prev, next, prev); |
