diff options
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 3cd93d8be5..977a3fbccb 100644 --- a/firmware/usb.c +++ b/firmware/usb.c | |||
@@ -529,6 +529,10 @@ bool usb_inserted(void) | |||
529 | #ifdef HAVE_USBSTACK | 529 | #ifdef HAVE_USBSTACK |
530 | void usb_request_exclusive_ata(void) | 530 | void usb_request_exclusive_ata(void) |
531 | { | 531 | { |
532 | /* This is not really a clean place to start boosting the cpu. but it's | ||
533 | * currently the best one. We want to get rid of having to boost the cpu | ||
534 | * for usb anyway */ | ||
535 | trigger_cpu_boost(); | ||
532 | if(!exclusive_ata_access) { | 536 | if(!exclusive_ata_access) { |
533 | queue_post(&usb_queue, USB_REQUEST_DISK, 0); | 537 | queue_post(&usb_queue, USB_REQUEST_DISK, 0); |
534 | } | 538 | } |
@@ -536,6 +540,7 @@ void usb_request_exclusive_ata(void) | |||
536 | 540 | ||
537 | void usb_release_exclusive_ata(void) | 541 | void usb_release_exclusive_ata(void) |
538 | { | 542 | { |
543 | cancel_cpu_boost(); | ||
539 | if(exclusive_ata_access) { | 544 | if(exclusive_ata_access) { |
540 | queue_post(&usb_queue, USB_RELEASE_DISK, 0); | 545 | queue_post(&usb_queue, USB_RELEASE_DISK, 0); |
541 | exclusive_ata_access = false; | 546 | exclusive_ata_access = false; |