Print this page
XXXX introduce drv_sectohz

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/sun4u/daktari/os/daktari.c
          +++ new/usr/src/uts/sun4u/daktari/os/daktari.c
↓ open down ↓ 158 lines elided ↑ open up ↑
 159  159          }
 160  160  
 161  161          ddi_walk_devs(ddi_root_node(), daktari_dev_search, (void *)&keysw_dip);
 162  162          ASSERT(keysw_dip != NULL);
 163  163  
 164  164          /*
 165  165           * prevent detach of i2c-ssc050
 166  166           */
 167  167          e_ddi_hold_devi(keysw_dip);
 168  168  
 169      -        keypoll_timeout_hz = drv_usectohz(10 * MICROSEC);
      169 +        keypoll_timeout_hz = drv_sectohz(10);
 170  170          keyswitch_poll(keysw_dip);
 171  171          abort_seq_handler = daktari_abort_seq_handler;
 172  172  }
 173  173  
 174  174  static int
 175  175  daktari_dev_search(dev_info_t *dip, void *arg)
 176  176  {
 177  177          char            *compatible = NULL; /* Search tree for "i2c-ssc050" */
 178  178          int             *dev_regs; /* Info about where the device is. */
 179  179          uint_t          len;
↓ open down ↓ 406 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX