Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 23e3c3cd authored by Roel Kluin's avatar Roel Kluin Committed by Ingo Molnar
Browse files

sched: remove double unlikely from schedule()



Combine two unlikely's

Signed-off-by: default avatarRoel Kluin <12o3l@tiscali.nl>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent 2070ee01
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);