Add IO priority handling. Currently all IO has equal priority, except the dircache...
commit4ccd90b42b5d234df7267f4b7d4b9e74e3250960
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
parent8ad309310f2e2ea024360d2b9439e9f920a65fb1
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