mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-09 21:22:39 -05:00
Skip spindown and delay on flash targets
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14877 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
0a231de536
commit
b452fb6dfe
2 changed files with 2 additions and 4 deletions
|
|
@ -1087,10 +1087,6 @@ void ata_sleep(void)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
void ata_sleepnow(void)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
void ata_spin(void)
|
void ata_spin(void)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -109,8 +109,10 @@ void usb_enable(bool on)
|
||||||
if(button_status()==BUTTON_RIGHT)
|
if(button_status()==BUTTON_RIGHT)
|
||||||
#endif /* defined(IRIVER_H10) || defined (IRIVER_H10_5GB) */
|
#endif /* defined(IRIVER_H10) || defined (IRIVER_H10_5GB) */
|
||||||
{
|
{
|
||||||
|
#ifndef HAVE_FLASH_STORAGE
|
||||||
ata_sleepnow(); /* Immediately spindown the disk. */
|
ata_sleepnow(); /* Immediately spindown the disk. */
|
||||||
sleep(HZ*2);
|
sleep(HZ*2);
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef IPOD_ARCH /* The following code is based on ipodlinux */
|
#ifdef IPOD_ARCH /* The following code is based on ipodlinux */
|
||||||
#if CONFIG_CPU == PP5020
|
#if CONFIG_CPU == PP5020
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue