diff options
| author | William Wilgus <me.theuser@yahoo.com> | 2017-10-20 17:12:53 +0200 |
|---|---|---|
| committer | Amaury Pouly <amaury.pouly@gmail.com> | 2017-11-12 14:28:03 +0100 |
| commit | 7272f821da49020dc8a3e2f865f0fee82e8f4bf9 (patch) | |
| tree | 18ccb5537ac3c391da712870d2ef502bc91fb2a5 | |
| parent | ec4fa0333c41aebb16e7106b1e9f583eb54aa26c (diff) | |
| download | rockbox-7272f821da49020dc8a3e2f865f0fee82e8f4bf9.zip rockbox-7272f821da49020dc8a3e2f865f0fee82e8f4bf9.tar.gz rockbox-7272f821da49020dc8a3e2f865f0fee82e8f4bf9.tar.bz2 rockbox-7272f821da49020dc8a3e2f865f0fee82e8f4bf9.tar.xz | |
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
| -rw-r--r-- | firmware/target/arm/imx233/system-imx233.c | 4 |
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 3ac5d0e..a8a6a74 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 |