Print this page
XXXX introduce drv_sectohz

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/io/asy.c
          +++ new/usr/src/uts/common/io/asy.c
↓ open down ↓ 3104 lines elided ↑ open up ↑
3105 3105                           * the next message.
3106 3106                           */
3107 3107                          mutex_enter(&asy->asy_excl_hi);
3108 3108                          val = ddi_get8(asy->asy_iohandle,
3109 3109                              asy->asy_ioaddr + LCR);
3110 3110                          ddi_put8(asy->asy_iohandle, asy->asy_ioaddr + LCR,
3111 3111                              (val | SETBREAK));
3112 3112                          mutex_exit(&asy->asy_excl_hi);
3113 3113                          async->async_flags |= ASYNC_BREAK;
3114 3114                          (void) timeout(async_restart, (caddr_t)async,
3115      -                            drv_usectohz(1000000)/4);
     3115 +                            drv_sectohz(1) / 4);
3116 3116                          freemsg(bp);
3117 3117                          return; /* wait for this to finish */
3118 3118  
3119 3119                  case M_DELAY:
3120 3120                          /*
3121 3121                           * Arrange for "async_restart" to be called when the
3122 3122                           * delay expires; it will turn ASYNC_DELAY off,
3123 3123                           * and call "async_start" to grab the next message.
3124 3124                           */
3125 3125                          (void) timeout(async_restart, (caddr_t)async,
↓ open down ↓ 446 lines elided ↑ open up ↑
3572 3572                                   * it will turn the break bit off, and call
3573 3573                                   * "async_start" to grab the next message.
3574 3574                                   */
3575 3575                                  val = ddi_get8(asy->asy_iohandle,
3576 3576                                      asy->asy_ioaddr + LCR);
3577 3577                                  ddi_put8(asy->asy_iohandle,
3578 3578                                      asy->asy_ioaddr + LCR,
3579 3579                                      (val | SETBREAK));
3580 3580                                  mutex_exit(&asy->asy_excl_hi);
3581 3581                                  (void) timeout(async_restart, (caddr_t)async,
3582      -                                    drv_usectohz(1000000)/4);
     3582 +                                    drv_sectohz(1) / 4);
3583 3583                          } else {
3584 3584                                  DEBUGCONT1(ASY_DEBUG_OUT,
3585 3585                                      "async%d_ioctl: wait for flush.\n",
3586 3586                                      instance);
3587 3587                                  mutex_enter(&asy->asy_excl_hi);
3588 3588                                  asy_waiteot(asy);
3589 3589                                  mutex_exit(&asy->asy_excl_hi);
3590 3590                                  DEBUGCONT1(ASY_DEBUG_OUT,
3591 3591                                      "async%d_ioctl: ldterm satisfied.\n",
3592 3592                                      instance);
↓ open down ↓ 1233 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX