Print this page
XXXX introduce drv_sectohz

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/sun4u/cherrystone/os/cherrystone.c
          +++ new/usr/src/uts/sun4u/cherrystone/os/cherrystone.c
↓ open down ↓ 161 lines elided ↑ open up ↑
 162  162          }
 163  163  
 164  164          e_ddi_walk_driver("i2c-ssc050", cherry_dev_search, (void *)&keysw_dip);
 165  165          ASSERT(keysw_dip != NULL);
 166  166  
 167  167          /*
 168  168           * prevent detach of i2c-ssc050
 169  169           */
 170  170          e_ddi_hold_devi(keysw_dip);
 171  171  
 172      -        keypoll_timeout_hz = drv_usectohz(10 * MICROSEC);
      172 +        keypoll_timeout_hz = drv_sectohz(10);
 173  173          keyswitch_poll(keysw_dip);
 174  174          abort_seq_handler = cherry_abort_seq_handler;
 175  175  
 176  176          /*
 177  177           * Figure out which pcf8584_dip is shared with OBP for the nvram
 178  178           * device, so the lock can be acquired.
 179  179           */
 180  180  
 181  181          i2cnexus_dip = e_ddi_hold_devi_by_path(SHARED_PCF8584_PATH, 0);
 182  182  
↓ open down ↓ 453 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX