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

Commit a9c07001 authored by Hanumath Prasad's avatar Hanumath Prasad Committed by Stephen Boyd
Browse files

cpufreq: interactive: enable use_sched_load early



Set use_sched_load tunable early in store so that we pass
the correct 64-bit jiffy to scheduler.

Change-Id: I46ed73441c9d242f15e5759360d0cea4a9dd23d0
Signed-off-by: default avatarHanumath Prasad <hpprasad@codeaurora.org>
Signed-off-by: default avatarStephen Boyd <sboyd@codeaurora.org>
parent 6a2ea5bd
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -1249,15 +1249,19 @@ static ssize_t store_use_sched_load(

	if (tunables->use_sched_load == (bool) val)
		return count;

	tunables->use_sched_load = val;

	if (val)
		ret = cpufreq_interactive_enable_sched_input(tunables);
	else
		ret = cpufreq_interactive_disable_sched_input(tunables);

	if (ret)
	if (ret) {
		tunables->use_sched_load = !val;
		return ret;
	}

	tunables->use_sched_load = val;
	return count;
}