Imx233 Disable Autoslow only at maximum cpu frequency

At normal loads:
- disabling auto slow boosts performance at the cost of runtime (~ -5%)
- disabling at max cpu does not noticibly decrease runtime

Change-Id: I5de80201c9a24ce556862151cbd6b21b01708b63
This commit is contained in:
William Wilgus 2017-10-20 17:12:53 +02:00 committed by Amaury Pouly
parent ec4fa0333c
commit 7272f821da

View file

@ -357,8 +357,8 @@ void imx233_set_cpu_frequency(long frequency)
/* Change VDDD regulator */
imx233_power_set_regulator(REGULATOR_VDDD, prof->vddd, prof->vddd_bo);
}
/* enable auto slow again */
imx233_clkctrl_enable_auto_slow(true);
/* enable auto slow again only at lower cpu frequencies */
imx233_clkctrl_enable_auto_slow(frequency != CPUFREQ_MAX);
/* update frequency */
cpu_frequency = frequency;
#else