Skip to content

Commit d2216ba

Browse files
digetxchanwoochoi
authored andcommitted
PM / devfreq: tegra30: Make CPUFreq notifier to take into account boosting
We're taking into account both HW memory-accesses + CPU activity based on current CPU's frequency. For memory-accesses there is a kind of hysteresis in a form of "boosting" which is managed by the tegra30-devfreq driver. If current HW memory activity is higher than activity judged based of the CPU's frequency, then there is no need to schedule cpufreq_update_work because the result of the work will be a NO-OP. And thus, tegra_actmon_cpufreq_contribution() should return 0, meaning that at the moment CPU frequency doesn't contribute anything to the final decision about required memory clock rate. Signed-off-by: Dmitry Osipenko <[email protected]> Signed-off-by: Chanwoo Choi <[email protected]>
1 parent 9cb1fd0 commit d2216ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/devfreq/tegra30-devfreq.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@ tegra_actmon_cpufreq_contribution(struct tegra_devfreq *tegra,
420420

421421
static_cpu_emc_freq = actmon_cpu_to_emc_rate(tegra, cpu_freq);
422422

423-
if (dev_freq >= static_cpu_emc_freq)
423+
if (dev_freq + actmon_dev->boost_freq >= static_cpu_emc_freq)
424424
return 0;
425425

426426
return static_cpu_emc_freq;

0 commit comments

Comments
 (0)