Add IO priority handling. Currently all IO has equal priority, except the dircache...
commitdbea665159ea562030d4601cc3813d30e25c54cb
authorgevaerts <gevaerts@a1c6a512-1295-4272-9138-f99709370657>
Sat, 3 Apr 2010 22:02:09 +0000 (3 22:02 +0000)
committergevaerts <gevaerts@a1c6a512-1295-4272-9138-f99709370657>
Sat, 3 Apr 2010 22:02:09 +0000 (3 22:02 +0000)
tree4d76e5232d8b513a40f11588d0f6899d47336b49
parent7a8b0599ff6ec93cb1bf55fd4857e69fa27c32d3
Add IO priority handling. Currently all IO has equal priority, except the dircache scanning thread which is lower. This fixes the slow boot problem for me, with the added benefit that actual audio playback also starts faster.

Lots of the changes are due to changing storage_(read|write)sectors() from macros to wrapper functions. This means that they have to be called with IF_MD2(drive,) again.

Flyspray: FS#11167
Author: Frank Gevaerts

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25459 a1c6a512-1295-4272-9138-f99709370657
firmware/SOURCES
firmware/common/dircache.c
firmware/common/disk.c
firmware/drivers/fat.c
firmware/export/config.h
firmware/export/storage.h
firmware/export/thread.h
firmware/storage.c
firmware/thread.c
firmware/usbstack/usb_storage.c