forked from len0rd/rockbox
action.c must desist in calling set_cpu_frequency from a tick
The function is neither reentrant nor ISR callable. Instead of using a ticked-based timeout, have the button driver provide the unboost after a delay when waiting for a button. HAVE_GUI_BOOST gets immediate boost after dequeuing any message, otherwise the queue has to have at least three messages waiting for it to trigger a boost-- essentially the behavior that existed but now combined in one place. Change-Id: I1d924702840f56a1a65abe41fa92b4e753c4e75a
This commit is contained in:
parent
15e1f592de
commit
c6299b268d
3 changed files with 77 additions and 94 deletions
|
@ -1129,11 +1129,6 @@ Lyre prototype 1 */
|
|||
#define INCLUDE_TIMEOUT_API
|
||||
#endif /* HAVE_USB_CHARGING_ENABLE && HAVE_USBSTACK */
|
||||
|
||||
#if defined(HAVE_GUI_BOOST) && defined(HAVE_ADJUSTABLE_CPU_FREQ)
|
||||
/* Timeout objects required if GUI boost is enabled */
|
||||
#define INCLUDE_TIMEOUT_API
|
||||
#endif /* HAVE_GUI_BOOST && HAVE_ADJUSTABLE_CPU_FREQ */
|
||||
|
||||
#ifndef SIMULATOR
|
||||
#if defined(HAVE_USBSTACK) || (CONFIG_STORAGE & STORAGE_NAND)
|
||||
#define STORAGE_GET_INFO
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue