aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/sched.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/sched.c')
-rw-r--r--kernel/sched.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/kernel/sched.c b/kernel/sched.c
index 2632b812cf24..15db82116e19 100644
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -1511,6 +1511,10 @@ static inline void finish_task_switch(runqueue_t *rq, task_t *prev)
1511 * Manfred Spraul <manfred@colorfullife.com> 1511 * Manfred Spraul <manfred@colorfullife.com>
1512 */ 1512 */
1513 prev_task_flags = prev->flags; 1513 prev_task_flags = prev->flags;
1514#ifdef CONFIG_DEBUG_SPINLOCK
1515 /* this is a valid case when another task releases the spinlock */
1516 rq->lock.owner = current;
1517#endif
1514 finish_arch_switch(prev); 1518 finish_arch_switch(prev);
1515 finish_lock_switch(rq, prev); 1519 finish_lock_switch(rq, prev);
1516 if (mm) 1520 if (mm)