summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2006-11-09 12:36:50 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2006-11-09 12:36:50 +0000
commit0d941425b95d0b5fd55862a6f1f0c4fd1222db28 (patch)
tree16e94e9f99f2159b080039a5179f3cf1bf3c8af4
parentd8103f3ba691adaeb83f8844e32b827c2c564d24 (diff)
downloadrockbox-0d941425b95d0b5fd55862a6f1f0c4fd1222db28.zip
rockbox-0d941425b95d0b5fd55862a6f1f0c4fd1222db28.tar.gz
rockbox-0d941425b95d0b5fd55862a6f1f0c4fd1222db28.tar.bz2
rockbox-0d941425b95d0b5fd55862a6f1f0c4fd1222db28.tar.xz
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
-rw-r--r--apps/misc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/misc.c b/apps/misc.c
index 0146385..7e4e507 100644
--- a/apps/misc.c
+++ b/apps/misc.c
@@ -36,6 +36,7 @@
#include "mp3_playback.h"
#include "settings.h"
#include "ata.h"
+#include "ata_idle_notify.h"
#include "kernel.h"
#include "power.h"
#include "powermgmt.h"
@@ -554,6 +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 */
tree_flush();
}
@@ -567,6 +569,7 @@ static bool clean_shutdown(void (*callback)(void *), void *parameter)
#ifdef SIMULATOR
(void)callback;
(void)parameter;
+ call_ata_idle_notifys(false);
exit(0);
#else
int i;