Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 69092
b: refs/heads/master
c: 1e81995
h: refs/heads/master
v: v3
  • Loading branch information
Ingo Molnar committed Oct 15, 2007
1 parent 6562677 commit a470759
Show file tree
Hide file tree
Showing 2 changed files with 7 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: 08ec3df5109e0555da5b9deb4382fd29733c852c
refs/heads/master: 1e819950660e6a811b549422ffb652273257e45e
8 changes: 6 additions & 2 deletions trunk/kernel/sched.c
Original file line number Diff line number Diff line change
Expand Up @@ -3481,9 +3481,13 @@ asmlinkage void __sched schedule(void)

schedule_debug(prev);

spin_lock_irq(&rq->lock);
clear_tsk_need_resched(prev);
/*
* Do the rq-clock update outside the rq lock:
*/
local_irq_disable();
__update_rq_clock(rq);
spin_lock(&rq->lock);
clear_tsk_need_resched(prev);

if (prev->state && !(preempt_count() & PREEMPT_ACTIVE)) {
if (unlikely((prev->state & TASK_INTERRUPTIBLE) &&
Expand Down

0 comments on commit a470759

Please sign in to comment.