This is the bug/patch tracker for Rockbox. Click here for more information.
Quick links: Bugs · Patches · Rockbox frontpage
FS#8947 - Add a stub in the simulator for ata_disk_is_active
Attached to Project:
Rockbox
Opened by Bertrik Sikken (bertrik) - Tuesday, 29 April 2008, 00:43 GMT+2
Last edited by Bertrik Sikken (bertrik) - Thursday, 03 July 2008, 15:39 GMT+2
Opened by Bertrik Sikken (bertrik) - Tuesday, 29 April 2008, 00:43 GMT+2
Last edited by Bertrik Sikken (bertrik) - Thursday, 03 July 2008, 15:39 GMT+2
|
DetailsThis patch adds a simulator stub for function ata_disk_is_active, allowing the removal of a bunch of #ifdef SIMULATOR macros.
The implementation of the stub is very simple and returns true once after ata_spin has been called and always returns false after ata_spindown has been called. We could make a more realistic simulation of active disk behaviour (e.g. with a timer) but I'd like to keep it simple and this implementation can return both true and false under specific conditions. |
This task depends upon
Closed by Bertrik Sikken (bertrik)
Thursday, 03 July 2008, 15:39 GMT+2
Reason for closing: Accepted
Additional comments about closing: Committed in r17927.
Thursday, 03 July 2008, 15:39 GMT+2
Reason for closing: Accepted
Additional comments about closing: Committed in r17927.
a better solution would be to remove it from the plugin api and fix battery bench to use the ata spindown callback (which is realy the only place where this is misused)