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

Commit 69e36552 authored by Amir Vajid's avatar Amir Vajid Committed by Jonathan Avila
Browse files

cpufreq: cpu-boost: utilize latest sched_boost API



Update sched_boost_on_input to be an unsigned int
so that it can utilize the latest sched_boost APIs.

Change-Id: I42f626c9f0112aee3bb9f37fd62d77709f03ebcf
Signed-off-by: default avatarAmir Vajid <avajid@codeaurora.org>
Signed-off-by: default avatarRohit Gupta <rohgup@codeaurora.org>
[avilaj@codeaurora.org: Change to sysfs from module_param]
Signed-off-by: default avatarJonathan Avila <avilaj@codeaurora.org>
parent 220c8fe0
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
// SPDX-License-Identifier: GPL-2.0-only
/*
 * Copyright (c) 2013-2015,2019, The Linux Foundation. All rights reserved.
 * Copyright (c) 2013-2015,2017,2019, The Linux Foundation. All rights reserved.
 */

#define pr_fmt(fmt) "cpu-boost: " fmt
@@ -225,8 +225,8 @@ static void do_input_boost(struct work_struct *work)
	update_policy_online();

	/* Enable scheduler boost to migrate tasks to big cluster */
	if (sched_boost_on_input) {
		ret = sched_set_boost(1);
	if (sched_boost_on_input > 0) {
		ret = sched_set_boost(sched_boost_on_input);
		if (ret)
			pr_err("cpu-boost: sched boost enable failed\n");
		else