forked from len0rd/rockbox
Fix CPU boosting in test_codec.
Boost only for tests and unboost immediately afterwards. It was leaving the CPU boosted after exiting. Change-Id: I010c4b975bd27e8990dc057ddd244dab233411ca
This commit is contained in:
parent
9b43f14165
commit
39946a56d8
1 changed files with 11 additions and 7 deletions
|
@ -910,8 +910,6 @@ menu:
|
||||||
boost_settings, 2, NULL);
|
boost_settings, 2, NULL);
|
||||||
goto menu;
|
goto menu;
|
||||||
}
|
}
|
||||||
if(boost)
|
|
||||||
rb->cpu_boost(true);
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (result == QUIT)
|
if (result == QUIT)
|
||||||
|
@ -963,6 +961,11 @@ menu:
|
||||||
goto exit;
|
goto exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef HAVE_ADJUSTABLE_CPU_FREQ
|
||||||
|
if (boost)
|
||||||
|
rb->cpu_boost(true);
|
||||||
|
#endif
|
||||||
|
|
||||||
if (scandir) {
|
if (scandir) {
|
||||||
/* Test all files in the same directory as the file selected by the
|
/* Test all files in the same directory as the file selected by the
|
||||||
user */
|
user */
|
||||||
|
@ -1003,13 +1006,14 @@ menu:
|
||||||
log_text("Wrote /test.wav",true);
|
log_text("Wrote /test.wav",true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
plugin_quit();
|
|
||||||
|
|
||||||
#ifdef HAVE_ADJUSTABLE_CPU_FREQ
|
#ifdef HAVE_ADJUSTABLE_CPU_FREQ
|
||||||
if (boost)
|
if (boost)
|
||||||
rb->cpu_boost(false);
|
rb->cpu_boost(false);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
plugin_quit();
|
||||||
|
|
||||||
rb->button_clear_queue();
|
rb->button_clear_queue();
|
||||||
goto show_menu;
|
goto show_menu;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue