summaryrefslogtreecommitdiffstats
path: root/firmware/target/arm/imx233
diff options
context:
space:
mode:
authorWilliam Wilgus <me.theuser@yahoo.com>2017-10-20 17:12:53 +0200
committerAmaury Pouly <amaury.pouly@gmail.com>2017-11-12 14:28:03 +0100
commit7272f821da49020dc8a3e2f865f0fee82e8f4bf9 (patch)
tree18ccb5537ac3c391da712870d2ef502bc91fb2a5 /firmware/target/arm/imx233
parentec4fa0333c41aebb16e7106b1e9f583eb54aa26c (diff)
downloadrockbox-7272f821da49020dc8a3e2f865f0fee82e8f4bf9.tar.gz
rockbox-7272f821da49020dc8a3e2f865f0fee82e8f4bf9.zip
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
Diffstat (limited to 'firmware/target/arm/imx233')
-rw-r--r--firmware/target/arm/imx233/system-imx233.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/target/arm/imx233/system-imx233.c b/firmware/target/arm/imx233/system-imx233.c
index 3ac5d0e557..a8a6a748ce 100644
--- a/firmware/target/arm/imx233/system-imx233.c
+++ b/firmware/target/arm/imx233/system-imx233.c
@@ -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