summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Leonhardt <sebastian.leonhardt@web.de>2020-05-19 00:21:41 +0200
committerSolomon Peachy <pizza@shaftnet.org>2020-05-24 13:43:30 +0200
commit2eb15354b75bfa95e94c7a8d0f2db540b19fcd77 (patch)
treec656bff8495dba996f6cf24a042b37fc12a13cca
parentea9ed2f9e81f050d382cea795419e8f550c7bc89 (diff)
downloadrockbox-2eb15354b7.tar.gz
rockbox-2eb15354b7.tar.bz2
rockbox-2eb15354b7.zip
fix plugin test_boost not properly unboosting
Change-Id: Ib33bb58fc7006c03caa692c377860bfdf463298e
-rw-r--r--apps/plugins/test_boost.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/plugins/test_boost.c b/apps/plugins/test_boost.c
index ec91206d1e..b4beb5161a 100644
--- a/apps/plugins/test_boost.c
+++ b/apps/plugins/test_boost.c
@@ -72,6 +72,12 @@ enum plugin_status plugin_start(const void* parameter)
break;
#endif
case ACTION_STD_CANCEL:
+#ifdef HAVE_ADJUSTABLE_CPU_FREQ
+ if (boost)
+ {
+ rb->cpu_boost(false);
+ }
+#endif
done = true;
break;
}