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

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

Revert "cpufreq: interactive: Allow 1 ms error in above_hispeed_delay comparisons"



This reverts commit ff6af807.

Commit ff6af807 tries to avoid a corner case where frequency is stuck in
hispeed_freq for one additional window. For example, if timer_rate is
20ms, and go_hispeed_delay is 40ms, frequency might be stuck at
hispeed_freq for 60ms due to imprecision in jiffies. Same problem can be
easily solved by making go_hispeed_delay 1ms smaller instead of changing
the code.

Change-Id: Idab7c29ed28374df219210e444454068864d144d
Signed-off-by: default avatarJunjie Wu <junjiew@codeaurora.org>
parent 9b665d2b
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -213,7 +213,6 @@ static unsigned int freq_to_above_hispeed_delay(
		;

	ret = tunables->above_hispeed_delay[i];
	ret = (ret > (1 * USEC_PER_MSEC)) ? (ret - (1 * USEC_PER_MSEC)) : ret;
	spin_unlock_irqrestore(&tunables->above_hispeed_delay_lock, flags);
	return ret;
}