Print this page
XXXX introduce drv_sectohz

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/sun4u/starfire/cvc/cvc.c
          +++ new/usr/src/uts/sun4u/starfire/cvc/cvc.c
↓ open down ↓ 980 lines elided ↑ open up ↑
 981  981                   * Use a smaller delay between checks of BBSRAM for input
 982  982                   * when cvcd/cvcredir are not running or "via_bbsram" has
 983  983                   * been set.
 984  984                   * We don't go away completely when i/o is going through the
 985  985                   * network via cvcd since a command may be sent via BBSRAM
 986  986                   * to switch if the network is down or hung.
 987  987                   */
 988  988                  if ((cvcoutput_q == NULL) || (via_bbsram))
 989  989                          delay(drv_usectohz(100000));
 990  990                  else
 991      -                        delay(drv_usectohz(1000000));
      991 +                        delay(drv_sectohz(1));
 992  992                  cvc_bbsram_ops(BBSRAM_CONTROL_REG);
 993  993                  count = BBSRAM_INPUT_COUNT;
 994  994          } while (count == 0);
 995  995  
 996  996          lp = BBSRAM_INPUT_BUF - count;
 997  997  
 998  998          while (count--) {
 999  999                  *cp++ = *lp++;
1000 1000          }
1001 1001          *cp = '\0';
↓ open down ↓ 199 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX