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

Commit 432cf0bb authored by Joonwoo Park's avatar Joonwoo Park
Browse files

sched: fix compilation error with !CONFIG_SMP



Fix 'kernel/sched/core.c:2160:7: error: 'notif_required' undeclared'.

Change-Id: I418f700a5b5213cd7ba3d1628906dcc85995ef75
Signed-off-by: default avatarJoonwoo Park <joonwoop@codeaurora.org>
parent dddcab78
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -2043,9 +2043,9 @@ try_to_wake_up(struct task_struct *p, unsigned int state, int wake_flags)
	struct related_thread_group *grp = NULL;
	int src_cpu;
	bool notif_required = false;
#endif
	bool freq_notif_allowed = !(wake_flags & WF_NO_NOTIFIER);
	bool check_group = false;
#endif

	wake_flags &= ~WF_NO_NOTIFIER;

@@ -2156,6 +2156,7 @@ try_to_wake_up(struct task_struct *p, unsigned int state, int wake_flags)
out:
	raw_spin_unlock_irqrestore(&p->pi_lock, flags);

#ifdef CONFIG_SMP
	if (freq_notif_allowed) {
		if (notif_required && !same_freq_domain(src_cpu, cpu)) {
			check_for_freq_change(cpu_rq(cpu),
@@ -2166,6 +2167,7 @@ try_to_wake_up(struct task_struct *p, unsigned int state, int wake_flags)
			check_for_freq_change(cpu_rq(cpu), true, false);
		}
	}
#endif

	return success;
}