Print this page
XXXX introduce drv_sectohz

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/sun4u/serengeti/io/sgsbbc_mailbox.c
          +++ new/usr/src/uts/sun4u/serengeti/io/sgsbbc_mailbox.c
↓ open down ↓ 912 lines elided ↑ open up ↑
 913  913          flags = WAIT_FOR_REPLY|WAIT_FOR_SPACE;
 914  914  
 915  915          /*
 916  916           * We want to place a lower limit on the shortest amount of time we
 917  917           * will wait before timing out while communicating with the SC via
 918  918           * the mailbox.
 919  919           */
 920  920          if (wait_time < sbbc_mbox_min_timeout)
 921  921                  wait_time = sbbc_mbox_default_timeout;
 922  922  
 923      -        stop_time = ddi_get_lbolt() + wait_time * drv_usectohz(MICROSEC);
      923 +        stop_time = ddi_get_lbolt() + drv_sectohz(wait_time);
 924  924  
 925  925          /*
 926  926           * If there is a message being processed, sleep until it is our turn.
 927  927           */
 928  928          mutex_enter(&outbox_queue_lock);
 929  929  
 930  930          /*
 931  931           * allocate an ID for this message, let it wrap
 932  932           * around transparently.
 933  933           * msg_id == 0 is unsolicited message
↓ open down ↓ 1938 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX