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

Commit ce53a57f authored by Amir Vajid's avatar Amir Vajid
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>
parent 2f4cbe5b
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
/*
 * Copyright (c) 2013-2015, The Linux Foundation. All rights reserved.
 * Copyright (c) 2013-2015,2017, 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
@@ -39,8 +39,8 @@ static bool input_boost_enabled;
static unsigned int input_boost_ms = 40;
module_param(input_boost_ms, uint, 0644);

static bool sched_boost_on_input;
module_param(sched_boost_on_input, bool, 0644);
static unsigned int sched_boost_on_input;
module_param(sched_boost_on_input, uint, 0644);

static bool sched_boost_active;

@@ -209,8 +209,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: HMP boost enable failed\n");
		else