Print this page
XXXX introduce drv_sectohz

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/io/sata/impl/sata.c
          +++ new/usr/src/uts/common/io/sata/impl/sata.c
↓ open down ↓ 6784 lines elided ↑ open up ↑
6785 6785                                              " default device features could not"
6786 6786                                              " be set. Device may not operate "
6787 6787                                              "as expected.",
6788 6788                                              sata_device.satadev_addr.cport,
6789 6789                                              sata_device.satadev_addr.pmport);
6790 6790                          }
6791 6791                          if ((scsipkt->pkt_flags & FLAG_NOINTR) == 0)
6792 6792                                  scsi_hba_pkt_comp(scsipkt);
6793 6793                          return;
6794 6794                  } else if (rval == SATA_RETRY) {
6795      -                        delay(drv_usectohz(1000000 *
6796      -                            DOWNLOAD_WAIT_INTERVAL_SECS));
     6795 +                        delay(drv_sectohz(DOWNLOAD_WAIT_INTERVAL_SECS));
6797 6796                          continue;
6798 6797                  } else  /* failed - no reason to retry */
6799 6798                          break;
6800 6799          }
6801 6800  
6802 6801          /*
6803 6802           * Something went wrong, device probing failed.
6804 6803           */
6805 6804          SATA_LOG_D((sata_hba_inst, CE_WARN,
6806 6805              "Cannot probe device after downloading microcode\n"));
↓ open down ↓ 14264 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX