diff options
| author | Frank Gevaerts <frank@gevaerts.be> | 2008-03-20 22:05:11 +0000 |
|---|---|---|
| committer | Frank Gevaerts <frank@gevaerts.be> | 2008-03-20 22:05:11 +0000 |
| commit | ea5903dbf10ea7657e09831598d0c1bfbdcaf39f (patch) | |
| tree | 84813a6d75007ce1ed2312395defd5c2bbae4bca /firmware/usb.c | |
| parent | 7e1a22e5be19aa199701ee5bae230c3b8cf5a901 (diff) | |
| download | rockbox-ea5903dbf10ea7657e09831598d0c1bfbdcaf39f.zip rockbox-ea5903dbf10ea7657e09831598d0c1bfbdcaf39f.tar.gz rockbox-ea5903dbf10ea7657e09831598d0c1bfbdcaf39f.tar.bz2 rockbox-ea5903dbf10ea7657e09831598d0c1bfbdcaf39f.tar.xz | |
move boosting for usb around a bit, so the cpu is boosted for the entire duration of actual use of storage. On some setups just boosting for the actual transfers doesn't seem to work
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16726 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/usb.c')
| -rw-r--r-- | firmware/usb.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/firmware/usb.c b/firmware/usb.c index 3cd93d8..977a3fb 100644 --- a/firmware/usb.c +++ b/firmware/usb.c @@ -529,6 +529,10 @@ bool usb_inserted(void) #ifdef HAVE_USBSTACK void usb_request_exclusive_ata(void) { + /* This is not really a clean place to start boosting the cpu. but it's + * currently the best one. We want to get rid of having to boost the cpu + * for usb anyway */ + trigger_cpu_boost(); if(!exclusive_ata_access) { queue_post(&usb_queue, USB_REQUEST_DISK, 0); } @@ -536,6 +540,7 @@ void usb_request_exclusive_ata(void) void usb_release_exclusive_ata(void) { + cancel_cpu_boost(); if(exclusive_ata_access) { queue_post(&usb_queue, USB_RELEASE_DISK, 0); exclusive_ata_access = false; |