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/usbstack/usb_storage.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'firmware/usbstack') diff --git a/firmware/usbstack/usb_storage.c b/firmware/usbstack/usb_storage.c index 8de0f418dc..c528a3a21d 100644 --- a/firmware/usbstack/usb_storage.c +++ b/firmware/usbstack/usb_storage.c @@ -879,7 +879,6 @@ static void handle_scsi(struct command_block_wrapper* cbw) cur_sense_data.ascq=0; } else { - trigger_cpu_boost(); cur_cmd.last_result = ata_read_sectors(IF_MV2(cur_cmd.lun,) cur_cmd.sector, MIN(BUFFER_SIZE/SECTOR_SIZE, @@ -917,7 +916,6 @@ static void handle_scsi(struct command_block_wrapper* cbw) cur_sense_data.ascq=0; } else { - trigger_cpu_boost(); receive_block_data(cur_cmd.data[0], MIN(BUFFER_SIZE, cur_cmd.count*SECTOR_SIZE)); @@ -953,7 +951,6 @@ static void receive_block_data(void *data,int size) static void send_csw(int status) { - cancel_cpu_boost(); tb.csw->signature = htole32(CSW_SIGNATURE); tb.csw->tag = cur_cmd.tag; tb.csw->data_residue = 0; -- cgit v1.2.3