Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 4269
b: refs/heads/master
c: 5bbcfd9
h: refs/heads/master
i:
  4267: e76750d
v: v3
  • Loading branch information
Ingo Molnar authored and Linus Torvalds committed Jul 8, 2005
1 parent dbabead commit ba9b08f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a4014d8f61a6a136d22422cf8aa978e6495dbad9
refs/heads/master: 5bbcfd9000887c0da7d57cc7b3ac869fc0dd5aa9
7 changes: 7 additions & 0 deletions trunk/kernel/sched.c
Original file line number Diff line number Diff line change
Expand Up @@ -3877,6 +3877,13 @@ asmlinkage long sys_sched_yield(void)

static inline void __cond_resched(void)
{
/*
* The BKS might be reacquired before we have dropped
* PREEMPT_ACTIVE, which could trigger a second
* cond_resched() call.
*/
if (unlikely(preempt_count()))
return;
do {
add_preempt_count(PREEMPT_ACTIVE);
schedule();
Expand Down

0 comments on commit ba9b08f

Please sign in to comment.