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:
parent
354015ef28
commit
32eb8275f4
1 changed files with 4 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue