From ea5903dbf10ea7657e09831598d0c1bfbdcaf39f Mon Sep 17 00:00:00 2001 From: Frank Gevaerts Date: Thu, 20 Mar 2008 22:05:11 +0000 Subject: 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 --- firmware/usb.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'firmware/usb.c') diff --git a/firmware/usb.c b/firmware/usb.c index 3cd93d8be5..977a3fbccb 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; -- cgit v1.2.3