Changeset 17080


Ignore:
Timestamp:
05/16/11 23:08:40 (2 years ago)
Author:
BrainSlayer
Message:

performance

Location:
src/linux/laguna/linux-2.6.31.14/drivers/usb
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/linux/laguna/linux-2.6.31.14/drivers/usb/core/hub.c

    r14877 r17080  
    2626#include <asm/uaccess.h> 
    2727#include <asm/byteorder.h> 
    28  
     28#include <asm/io.h> 
     29#include <linux/usb/ehci_def.h> 
    2930#include "usb.h" 
    3031#include "hcd.h" 
  • src/linux/laguna/linux-2.6.31.14/drivers/usb/storage/scsiglue.c

    r14877 r17080  
    541541        .sg_tablesize =                 SG_ALL, 
    542542 
    543         /* limit the total size of a transfer to 120 KB */ 
    544         .max_sectors =                  240, 
     543        /* limit the total size of a transfer to 1024 KB */ 
     544#ifdef CONFIG_USB_XHCI_HCD 
     545        .max_sectors =                  240,    // larger than 240 will cause USB 3.0 fail 
     546#else 
     547        .max_sectors =                  1024, //Jacky-20100917.  when value >= 1024, the USB Bulk performance gets no more improve 
     548#endif 
    545549 
    546550        /* merge commands... this seems to help performance, but 
Note: See TracChangeset for help on using the changeset viewer.