Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 44874
b: refs/heads/master
c: ba00840
h: refs/heads/master
v: v3
  • Loading branch information
Mark Fasheh authored and Linus Torvalds committed Dec 22, 2006
1 parent 7585d96 commit aee082c
Show file tree
Hide file tree
Showing 2 changed files with 3 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: 2aea4fb61609ba7ef82f7dc6fca116bda88816e1
refs/heads/master: ba0084048ab785c2cb1d6cc2cccabe642a5b799a
2 changes: 2 additions & 0 deletions trunk/kernel/sched.c
Original file line number Diff line number Diff line change
Expand Up @@ -4619,8 +4619,10 @@ asmlinkage long sys_sched_yield(void)

static inline int __resched_legal(int expected_preempt_count)
{
#ifdef CONFIG_PREEMPT
if (unlikely(preempt_count() != expected_preempt_count))
return 0;
#endif
if (unlikely(system_state != SYSTEM_RUNNING))
return 0;
return 1;
Expand Down

0 comments on commit aee082c

Please sign in to comment.