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

Commit b839dcac 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: Use default min_sample_time if SDF is zero"

parents 787a183b 24d3ed23
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -436,11 +436,10 @@ static void cpufreq_interactive_timer(unsigned long data)
	 * Do not scale below floor_freq unless we have been at or above the
	 * floor frequency for the minimum sample time since last validated.
	 */
	if (pcpu->policy->cur == pcpu->policy->max) {
	if (sampling_down_factor && pcpu->policy->cur == pcpu->policy->max)
		mod_min_sample_time = sampling_down_factor;
	} else {
	else
		mod_min_sample_time = min_sample_time;
	}

	if (new_freq < pcpu->floor_freq) {
		if (now - pcpu->floor_validate_time < mod_min_sample_time) {