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

Commit bc99d06a authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "cpufreq: interactive: Revert sync on thread migration optimizations"

parents de659d24 c4b55ef2
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;
	}