Print this page
XXXX introduce drv_sectohz

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/crypto/spi/kcf_spi.c
          +++ new/usr/src/uts/common/crypto/spi/kcf_spi.c
↓ open down ↓ 506 lines elided ↑ open up ↑
 507  507  
 508  508          if (desc->pd_prov_type == CRYPTO_SW_PROVIDER) {
 509  509                  /*
 510  510                   * Wait till the existing requests with the provider complete
 511  511                   * and all the holds are released. All the holds on a software
 512  512                   * provider are from kernel clients and the hold time
 513  513                   * is expected to be short. So, we won't be stuck here forever.
 514  514                   */
 515  515                  while (kcf_get_refcnt(desc, B_TRUE) > 1) {
 516  516                          /* wait 1 second and try again. */
 517      -                        delay(1 * drv_usectohz(1000000));
      517 +                        delay(drv_sectohz(1));
 518  518                  }
 519  519          } else {
 520  520                  int i;
 521  521                  kcf_prov_cpu_t *mp;
 522  522  
 523  523                  /*
 524  524                   * Wait until requests that have been sent to the provider
 525  525                   * complete.
 526  526                   */
 527  527                  for (i = 0; i < desc->pd_nbins; i++) {
↓ open down ↓ 567 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX