Print this page
4823 don't open-code NSEC2MSEC and MSEC2NSEC

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/sun4u/io/todds1287.c
          +++ new/usr/src/uts/sun4u/io/todds1287.c
↓ open down ↓ 150 lines elided ↑ open up ↑
 151  151          ddi_quiesce_not_supported,      /* devo_quiesce */
 152  152  };
 153  153  
 154  154  
 155  155  static void     *ds1287_state;
 156  156  static int      instance = -1;
 157  157  
 158  158  /* Driver Tunables */
 159  159  static int      ds1287_interrupt_priority = 15;
 160  160  static int      ds1287_softint_priority = 2;
 161      -static hrtime_t power_button_debounce = NANOSEC/MILLISEC*10;
      161 +static hrtime_t power_button_debounce = MSEC2NSEC(10);
 162  162  static hrtime_t power_button_abort_interval = 1.5 * NANOSEC;
 163  163  static int      power_button_abort_presses = 3;
 164  164  static int      power_button_abort_enable = 1;
 165  165  static int      power_button_enable = 1;
 166  166  
 167  167  static int      power_button_pressed = 0;
 168  168  static int      power_button_cancel = 0;
 169  169  static int      power_button_timeouts = 0;
 170  170  static int      timeout_cancel = 0;
 171  171  static int      additional_presses = 0;
↓ open down ↓ 1027 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX