GUI boost for any button

It improve responsiveness for all targets with frequency scaling.

Change-Id: I72c94daf58cee10c1772decbd0443856c111cc47
This commit is contained in:
Mihail Zenkov 2016-03-18 23:34:57 +00:00 committed by Gerrit Rockbox
parent 123346b86a
commit fe9a3ceb0e
4 changed files with 7 additions and 3 deletions

View file

@ -224,9 +224,7 @@ static int get_action_worker(int context, int timeout,
static struct timeout gui_unboost;
/* Boost the CPU in case of wheel scrolling activity in the defined contexts.
* Call unboost with a timeout of GUI_BOOST_TIMEOUT. */
if ((button&(BUTTON_SCROLL_BACK|BUTTON_SCROLL_FWD)) &&
(context == CONTEXT_STD || context == CONTEXT_LIST ||
context == CONTEXT_MAINMENU || context == CONTEXT_TREE))
if (button != BUTTON_NONE)
{
gui_boost(true);
timeout_register(&gui_unboost, gui_unboost_callback, GUI_BOOST_TIMEOUT, 0);