Print this page
XXXX introduce drv_sectohz

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/sun4u/sunfire/io/ac.c
          +++ new/usr/src/uts/sun4u/sunfire/io/ac.c
↓ open down ↓ 1543 lines elided ↑ open up ↑
1544 1544                   * We need to cancel the existing timeout.
1545 1545                   */
1546 1546                  (void) untimeout(ac_hot_plug_timeout);
1547 1547                  ac_hot_plug_timeout = NULL;
1548 1548          }
1549 1549  
1550 1550          /*
1551 1551           * create a new timeout.
1552 1552           */
1553 1553          ac_hot_plug_timeout = timeout(ac_timeout, NULL,
1554      -            drv_usectohz(ac_hot_plug_timeout_interval * 1000000));
     1554 +            drv_sectohz(ac_hot_plug_timeout_interval));
1555 1555  
1556 1556          mutex_exit(&ac_hot_plug_mode_mutex);
1557 1557          return (0);
1558 1558  }
1559 1559  
1560 1560  static void
1561 1561  ac_timeout(void *arg)
1562 1562  {
1563 1563          struct ac_soft_state *softsp;
1564 1564          fhc_bd_t        *board;
↓ open down ↓ 94 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX