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

Commit 63862d07 authored by Satya Durga Srinivasu Prabhala's avatar Satya Durga Srinivasu Prabhala
Browse files

sched/core: fix warning from _nohz_idle_balance() after core unisolation



A warning is introduced by commit 92d7dde0
("sched: add cpu isolation support") in the unisolation path due to
usage of NOHZ_BALANCE_KICK. After core is unisolated, we try to kick
CPU to do load balancing using NOHZ_BALANCE_KICK, but,
commit b7031a02 ("sched/fair: Add NOHZ_STATS_KICK")
separated stats and actual kick which forces to use NOHZ_KICK_MASK
instead of NOHZ_BALANCE_KICK.

Change-Id: I0c0e90ac8f814dbfbaac00a680db8510a5587b6d
Signed-off-by: default avatarSatya Durga Srinivasu Prabhala <satyap@codeaurora.org>
parent f5f31790
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -6174,7 +6174,7 @@ int sched_unisolate_cpu_unlocked(int cpu)
		stop_cpus(cpumask_of(cpu), do_unisolation_work_cpu_stop, 0);

		/* Kick CPU to immediately do load balancing */
		if (!atomic_fetch_or(NOHZ_BALANCE_KICK, nohz_flags(cpu)))
		if (!atomic_fetch_or(NOHZ_KICK_MASK, nohz_flags(cpu)))
			smp_send_reschedule(cpu);
	}