Print this page
XXXX introduce drv_sectohz

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/avs/ns/sv/sv.c
          +++ new/usr/src/uts/common/avs/ns/sv/sv.c
↓ open down ↓ 1083 lines elided ↑ open up ↑
1084 1084  {
1085 1085          int rc = 0;
1086 1086  
1087 1087          mutex_enter(&sv_mutex);
1088 1088  
1089 1089          if (sv_mod_status == SV_PREVENT_UNLOAD) {
1090 1090                  if ((sv_ndevices != 0) || (sv_tset != NULL)) {
1091 1091                          rc = EBUSY;
1092 1092                  } else {
1093 1093                          sv_mod_status = SV_ALLOW_UNLOAD;
1094      -                        delay(SV_WAIT_UNLOAD * drv_usectohz(1000000));
     1094 +                        delay(drv_sectohz(SV_WAIT_UNLOAD));
1095 1095                  }
1096 1096          }
1097 1097  
1098 1098          mutex_exit(&sv_mutex);
1099 1099          return (rc);
1100 1100  }
1101 1101  
1102 1102  static int
1103 1103  svattach_fd(blind_t arg)
1104 1104  {
↓ open down ↓ 1716 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX