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

Commit 9d38f303 authored by qctecmdr Service's avatar qctecmdr Service Committed by Gerrit - the friendly Code Review server
Browse files

Merge "sched: Improve the scheduler"

parents 30af045f 712c0ba1
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)