Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 97425
b: refs/heads/master
c: 3f33a7c
h: refs/heads/master
i:
  97423: a6f1f5d
v: v3
  • Loading branch information
Roel Kluin authored and Ingo Molnar committed May 29, 2008
1 parent b1119b7 commit b10e2ef
Show file tree
Hide file tree
Showing 2 changed files with 3 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: f9305d4a0968201b2818dbed0dc8cb0d4ee7aeb3
refs/heads/master: 3f33a7ce9567ded582af1ab71f9802165fe12f09
4 changes: 2 additions & 2 deletions trunk/kernel/sched.c
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ static inline void sg_inc_cpu_power(struct sched_group *sg, u32 val)

static inline int rt_policy(int policy)
{
if (unlikely(policy == SCHED_FIFO) || unlikely(policy == SCHED_RR))
if (unlikely(policy == SCHED_FIFO || policy == SCHED_RR))
return 1;
return 0;
}
Expand Down Expand Up @@ -4433,7 +4433,7 @@ static inline void schedule_debug(struct task_struct *prev)
* schedule() atomically, we ignore that path for now.
* Otherwise, whine if we are scheduling when we should not be.
*/
if (unlikely(in_atomic_preempt_off()) && unlikely(!prev->exit_state))
if (unlikely(in_atomic_preempt_off() && !prev->exit_state))
__schedule_bug(prev);

profile_hit(SCHED_PROFILING, __builtin_return_address(0));
Expand Down

0 comments on commit b10e2ef

Please sign in to comment.