forked from len0rd/rockbox
dont allow the ata callbacks to be run less than once every 30s unless
explicitly forced to. The sleep_after param is only true in the Q_SLEEP event, so its uneeded, so removed git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11599 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
e25c840b98
commit
4049d44b03
5 changed files with 17 additions and 13 deletions
|
|
@ -141,7 +141,7 @@ long gui_wps_show(void)
|
|||
if (wps_state.paused) {
|
||||
settings_save();
|
||||
#if !defined(HAVE_RTC_RAM) && !defined(HAVE_SW_POWEROFF)
|
||||
call_ata_idle_notifys(false);
|
||||
call_ata_idle_notifys(true);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
|
@ -255,7 +255,7 @@ long gui_wps_show(void)
|
|||
audio_pause();
|
||||
settings_save();
|
||||
#if !defined(HAVE_RTC_RAM) && !defined(HAVE_SW_POWEROFF)
|
||||
call_ata_idle_notifys(false); /* make sure resume info is saved */
|
||||
call_ata_idle_notifys(true); /* make sure resume info is saved */
|
||||
#endif
|
||||
}
|
||||
break;
|
||||
|
|
|
|||
|
|
@ -555,7 +555,7 @@ bool settings_parseline(char* line, char** name, char** value)
|
|||
|
||||
static void system_flush(void)
|
||||
{
|
||||
call_ata_idle_notifys(false); /*doesnt work on usb and shutdown from ata thread */
|
||||
call_ata_idle_notifys(true); /*doesnt work on usb and shutdown from ata thread */
|
||||
tree_flush();
|
||||
}
|
||||
|
||||
|
|
@ -569,7 +569,7 @@ static bool clean_shutdown(void (*callback)(void *), void *parameter)
|
|||
#ifdef SIMULATOR
|
||||
(void)callback;
|
||||
(void)parameter;
|
||||
call_ata_idle_notifys(false);
|
||||
call_ata_idle_notifys(true);
|
||||
exit(0);
|
||||
#else
|
||||
int i;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue