summaryrefslogtreecommitdiff
path: root/apps/misc.c
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 /apps/misc.c
parentd8103f3ba691adaeb83f8844e32b827c2c564d24 (diff)
downloadrockbox-0d941425b95d0b5fd55862a6f1f0c4fd1222db28.tar.gz
rockbox-0d941425b95d0b5fd55862a6f1f0c4fd1222db28.zip
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
Diffstat (limited to 'apps/misc.c')
-rw-r--r--apps/misc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/misc.c b/apps/misc.c
index 01463851be..7e4e5071a1 100644
--- a/apps/misc.c
+++ b/apps/misc.c
@@ -36,6 +36,7 @@
36#include "mp3_playback.h" 36#include "mp3_playback.h"
37#include "settings.h" 37#include "settings.h"
38#include "ata.h" 38#include "ata.h"
39#include "ata_idle_notify.h"
39#include "kernel.h" 40#include "kernel.h"
40#include "power.h" 41#include "power.h"
41#include "powermgmt.h" 42#include "powermgmt.h"
@@ -554,6 +555,7 @@ bool settings_parseline(char* line, char** name, char** value)
554 555
555static void system_flush(void) 556static void system_flush(void)
556{ 557{
558 call_ata_idle_notifys(false); /*doesnt work on usb and shutdown from ata thread */
557 tree_flush(); 559 tree_flush();
558} 560}
559 561
@@ -567,6 +569,7 @@ static bool clean_shutdown(void (*callback)(void *), void *parameter)
567#ifdef SIMULATOR 569#ifdef SIMULATOR
568 (void)callback; 570 (void)callback;
569 (void)parameter; 571 (void)parameter;
572 call_ata_idle_notifys(false);
570 exit(0); 573 exit(0);
571#else 574#else
572 int i; 575 int i;