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

Commit 712c0ba1 authored by Pavankumar Kondeti's avatar Pavankumar Kondeti
Browse files

sched: Improve the scheduler



This change is for general scheduler improvement.

Change-Id: I455558f3e3f1293d4e2e8fe89cd1dacca05fcbe9
Signed-off-by: default avatarPavankumar Kondeti <pkondeti@codeaurora.org>
parent 0c098091
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
/* Copyright (c) 2012-2018, The Linux Foundation. All rights reserved.
/* Copyright (c) 2012-2019, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -45,12 +45,14 @@ static void boost_kick_cpus(void)
	if (boost_policy != SCHED_BOOST_ON_BIG)
		return;

	cpus_read_lock();
	cpumask_andnot(&kick_mask, cpu_online_mask, cpu_isolated_mask);

	for_each_cpu(i, &kick_mask) {
		if (cpu_capacity(i) != max_capacity)
			boost_kick(i);
	}
	cpus_read_unlock();
}

int got_boost_kick(void)