From a67e5d89efe6c3fcf5a2eaf27aac1c14f024ee27 Mon Sep 17 00:00:00 2001 From: Jonathan Gordon Date: Mon, 17 Mar 2008 05:22:53 +0000 Subject: It makes more sense for the callback registrar to decide if its a "oneshot" then the callback caller. (Doing it this way means playback could(/should?) registar a disk spinup callback at init which is called every spinup without needing to be reregistered) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16685 a1c6a512-1295-4272-9138-f99709370657 --- firmware/ata_idle_notify.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'firmware/ata_idle_notify.c') diff --git a/firmware/ata_idle_notify.c b/firmware/ata_idle_notify.c index a97c3538da..ab2233da1f 100644 --- a/firmware/ata_idle_notify.c +++ b/firmware/ata_idle_notify.c @@ -26,7 +26,7 @@ void register_ata_idle_func(ata_idle_notify function) { #if USING_ATA_CALLBACK - add_event(DISK_EVENT_SPINUP, function); + add_event(DISK_EVENT_SPINUP, true, function); #else function(); /* just call the function now */ /* this _may_ cause problems later if the calling function @@ -55,7 +55,7 @@ bool call_ata_idle_notifys(bool force) } lock_until = current_tick + 30*HZ; - send_event(DISK_EVENT_SPINUP, true, NULL); + send_event(DISK_EVENT_SPINUP, NULL); return true; } -- cgit v1.2.3