Print this page
XXXX introduce drv_sectohz

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/os/devcfg.c
          +++ new/usr/src/uts/common/os/devcfg.c
↓ open down ↓ 4296 lines elided ↑ open up ↑
4297 4297           * - 3 seconds is very small relative to the deadman timer.
4298 4298           * - normal attach and detach operations should be very quick.
4299 4299           * - attach and detach operations are fairly rare.
4300 4300           */
4301 4301          while (!panicstr && atomic_add_long_nv(&devinfo_attach_detach, 0) &&
4302 4302              (delayed < 3)) {
4303 4303                  delayed += 1;
4304 4304  
4305 4305                  /* do a sleeping wait for one second */
4306 4306                  ASSERT(!servicing_interrupt());
4307      -                delay(drv_usectohz(MICROSEC));
     4307 +                delay(drv_sectohz(1));
4308 4308          }
4309 4309  }
4310 4310  
4311 4311  static int
4312 4312  bind_dip(dev_info_t *dip, void *arg)
4313 4313  {
4314 4314          _NOTE(ARGUNUSED(arg))
4315 4315          char    *path;
4316 4316          major_t major, pmajor;
4317 4317  
↓ open down ↓ 4878 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX