1
0
Fork 0
forked from len0rd/rockbox

Remove last_sleep when it's not needed because IDE power is never turned off.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30943 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Boris Gjenero 2011-11-08 23:29:25 +00:00
parent 354015ef28
commit 32eb8275f4

View file

@ -861,7 +861,9 @@ void ata_spin(void)
static void ata_thread(void)
{
#ifdef HAVE_ATA_POWER_OFF
static long last_sleep = 0;
#endif
struct queue_event ev;
#ifdef ALLOW_USB_SPINDOWN
static bool usb_mode = false;
@ -899,7 +901,9 @@ static void ata_thread(void)
}
mutex_lock(&ata_mtx);
ata_perform_sleep();
#ifdef HAVE_ATA_POWER_OFF
last_sleep = current_tick;
#endif
mutex_unlock(&ata_mtx);
}
}