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

Commit c4b55ef2 authored by Junjie Wu's avatar Junjie Wu
Browse files

cpufreq: interactive: Revert sync on thread migration optimizations



Commit f8b27656
(cpufreq: Sync on thread migration optimizations) is no longer needed
for targets with synchronous CPUs.

Part of that commit has already been reverted in
a913b3af
(cpufreq: interactive: Revert timer start modification)

This commit reverts the remaining changes.

Change-Id: I7eadeb7e48cfbef8fec74eb1b0e221eb65482f52
Signed-off-by: default avatarJunjie Wu <junjiew@codeaurora.org>
parent e1985f91
Loading
Loading
Loading
Loading
+0 −10
Original line number Diff line number Diff line
@@ -55,7 +55,6 @@ struct cpufreq_interactive_cpuinfo {
	struct rw_semaphore enable_sem;
	int governor_enabled;
	int prev_load;
	bool limits_changed;
};

static DEFINE_PER_CPU(struct cpufreq_interactive_cpuinfo, cpuinfo);
@@ -459,14 +458,6 @@ static void cpufreq_interactive_timer(unsigned long data)
	else
		mod_min_sample_time = tunables->min_sample_time;

	if (pcpu->limits_changed) {
		if (tunables->sampling_down_factor &&
			(pcpu->policy->cur != pcpu->policy->max))
			mod_min_sample_time = 0;

		pcpu->limits_changed = false;
	}

	if (new_freq < pcpu->floor_freq) {
		if (now - pcpu->floor_validate_time < mod_min_sample_time) {
			trace_cpufreq_interactive_notyet(
@@ -1450,7 +1441,6 @@ static int cpufreq_governor_interactive(struct cpufreq_policy *policy,
			}

			pcpu->max_freq = policy->max;
			pcpu->limits_changed = true;
		}
		break;
	}