Skip to content

Commit

Permalink
sched: remove double unlikely from schedule()
Browse files Browse the repository at this point in the history
Combine two unlikely's

Signed-off-by: Roel Kluin <12o3l@tiscali.nl>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
  • Loading branch information
Roel Kluin authored and Ingo Molnar committed Mar 21, 2008
1 parent 2070ee0 commit 23e3c3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/sched.c
Original file line number Diff line number Diff line change
Expand Up @@ -3882,7 +3882,7 @@ asmlinkage void __sched schedule(void)

if (prev->state && !(preempt_count() & PREEMPT_ACTIVE)) {
if (unlikely((prev->state & TASK_INTERRUPTIBLE) &&
unlikely(signal_pending(prev)))) {
signal_pending(prev))) {
prev->state = TASK_RUNNING;
} else {
deactivate_task(rq, prev, 1);
Expand Down

0 comments on commit 23e3c3c

Please sign in to comment.