Print this page
XXXX introduce drv_sectohz
*** 512,522 ****
* provider are from kernel clients and the hold time
* is expected to be short. So, we won't be stuck here forever.
*/
while (kcf_get_refcnt(desc, B_TRUE) > 1) {
/* wait 1 second and try again. */
! delay(1 * drv_usectohz(1000000));
}
} else {
int i;
kcf_prov_cpu_t *mp;
--- 512,522 ----
* provider are from kernel clients and the hold time
* is expected to be short. So, we won't be stuck here forever.
*/
while (kcf_get_refcnt(desc, B_TRUE) > 1) {
/* wait 1 second and try again. */
! delay(drv_sectohz(1));
}
} else {
int i;
kcf_prov_cpu_t *mp;