1
0
Fork 0
forked from len0rd/rockbox

call call_ata_idle_notifys on clean shutdown, this should work, but

threads with possible callbacks should deal with shutdown/usb
themselves.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11480 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Jonathan Gordon 2006-11-09 12:36:50 +00:00
parent d8103f3ba6
commit 0d941425b9

View file

@ -36,6 +36,7 @@
#include "mp3_playback.h" #include "mp3_playback.h"
#include "settings.h" #include "settings.h"
#include "ata.h" #include "ata.h"
#include "ata_idle_notify.h"
#include "kernel.h" #include "kernel.h"
#include "power.h" #include "power.h"
#include "powermgmt.h" #include "powermgmt.h"
@ -554,6 +555,7 @@ bool settings_parseline(char* line, char** name, char** value)
static void system_flush(void) static void system_flush(void)
{ {
call_ata_idle_notifys(false); /*doesnt work on usb and shutdown from ata thread */
tree_flush(); tree_flush();
} }
@ -567,6 +569,7 @@ static bool clean_shutdown(void (*callback)(void *), void *parameter)
#ifdef SIMULATOR #ifdef SIMULATOR
(void)callback; (void)callback;
(void)parameter; (void)parameter;
call_ata_idle_notifys(false);
exit(0); exit(0);
#else #else
int i; int i;