Print this page
XXXX introduce drv_sectohz

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/io/usb/hcd/uhci/uhci.c
          +++ new/usr/src/uts/common/io/usb/hcd/uhci/uhci.c
↓ open down ↓ 412 lines elided ↑ open up ↑
 413  413          if (usba_hcdi_register(&hcdi_args, 0) != USB_SUCCESS) {
 414  414  
 415  415                  goto fail;
 416  416          }
 417  417  
 418  418  #ifndef __sparc
 419  419          /*
 420  420           * On NCR system,  the driver seen  failure of some commands
 421  421           * while booting. This delay mysteriously solved the problem.
 422  422           */
 423      -        delay(drv_usectohz(uhci_attach_wait*1000000));
      423 +        delay(drv_sectohz(uhci_attach_wait));
 424  424  #endif
 425  425  
 426  426          /*
 427  427           * Create another timeout handler to check whether any
 428  428           * control/bulk/interrupt commands failed.
 429  429           * This gets called every second.
 430  430           */
 431  431          uhcip->uhci_cmd_timeout_id = timeout(uhci_cmd_timeout_hdlr,
 432  432              (void *)uhcip, UHCI_ONE_SECOND);
 433  433  
↓ open down ↓ 1472 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX