From 7272f821da49020dc8a3e2f865f0fee82e8f4bf9 Mon Sep 17 00:00:00 2001 From: William Wilgus Date: Fri, 20 Oct 2017 17:12:53 +0200 Subject: [PATCH] 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 --- firmware/target/arm/imx233/system-imx233.c | 4 ++-- 1 file 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