From 3f932318e2a304a0c4c84ec1210e4108b0217844 Mon Sep 17 00:00:00 2001 From: Michael Giacomelli Date: Mon, 22 Nov 2010 02:28:12 +0000 Subject: [PATCH] Fix mistake on targets without frequency scaling. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28638 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/test_codec.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/apps/plugins/test_codec.c b/apps/plugins/test_codec.c index c35ca93a3c..7adaa8ea1c 100644 --- a/apps/plugins/test_codec.c +++ b/apps/plugins/test_codec.c @@ -867,8 +867,10 @@ show_menu: #ifdef HAVE_ADJUSTABLE_CPU_FREQ menu: - result = rb->do_menu(&menu, &selection, NULL, false); +#endif + result = rb->do_menu(&menu, &selection, NULL, false); +#ifdef HAVE_ADJUSTABLE_CPU_FREQ if (result == BOOST) { @@ -876,6 +878,8 @@ menu: boost_settings, 2, NULL); goto menu; } + if(boost) + rb->cpu_boost(true); #endif if (result == QUIT) @@ -884,11 +888,6 @@ menu: goto exit; } -#ifdef HAVE_ADJUSTABLE_CPU_FREQ - if(boost) - rb->cpu_boost(true); -#endif - scandir = 0; if ((checksum = (result == CHECKSUM || result == CHECKSUM_DIR)))