From fe9a3ceb0e09ae44d15f2636162ea534129b2137 Mon Sep 17 00:00:00 2001 From: Mihail Zenkov Date: Fri, 18 Mar 2016 23:34:57 +0000 Subject: GUI boost for any button It improve responsiveness for all targets with frequency scaling. Change-Id: I72c94daf58cee10c1772decbd0443856c111cc47 --- apps/action.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'apps/action.c') diff --git a/apps/action.c b/apps/action.c index 856bc08..eae00f5 100644 --- a/apps/action.c +++ b/apps/action.c @@ -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); -- cgit v1.1