Rockbox

Tasklist

FS#3015 - fix shutdown on ipod nano

Attached to Project: Rockbox
Opened by Mikael Magnusson (mikaelh) - Sunday, 12 February 2006, 10:55 GMT
Last edited by Mikael Magnusson (mikaelh) - Sunday, 19 February 2006, 21:23 GMT
Task Type Patches
Category
Status Closed
Assigned To No-one
Operating System
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No

Details

The ipod nano currently busyspins in shutdown_hw()
because it has this code;
while(ata_disk_is_active())
sleep(HZ/10);
ata.c returns !sleeping for that function, but sleeping
is never set to true for the nano. This patch simply
always returns 0 in ata_disk_is_active() for ipod nano,
reducing shutdown from 8 seconds (which is the timeout
set in sys_poweroff()) to about 1 second.
This task depends upon

Closed by  Mikael Magnusson (mikaelh)
Sunday, 19 February 2006, 21:23 GMT
Reason for closing:  Accepted
Additional comments about closing:  Logged In: YES
user_id=686463

committed by preglow
Comment by Mikael Magnusson (mikaelh) - Sunday, 19 February 2006, 21:23 GMT

committed by preglow

Loading...