Print this page
XXXX introduce drv_sectohz

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/io/gldutil.c
          +++ new/usr/src/uts/common/io/gldutil.c
↓ open down ↓ 1343 lines elided ↑ open up ↑
1344 1344  
1345 1345          /* Default 10 second route timeout on lack of activity */
1346 1346          {
1347 1347          int t = ddi_getprop(DDI_DEV_T_NONE, macinfo->gldm_devinfo, 0,
1348 1348              "gld_rde_timeout", 10);
1349 1349          if (t < 1)
1350 1350                  t = 1;          /* Let's be reasonable */
1351 1351          if (t > 600)
1352 1352                  t = 600;        /* Let's be reasonable */
1353 1353          /* We're using ticks (lbolts) for our timeout -- convert from seconds */
1354      -        t = drv_usectohz(1000000 * t);
     1354 +        t = drv_sectohz(t);
1355 1355          ((gld_mac_pvt_t *)macinfo->gldm_mac_pvt)->rde_timeout = t;
1356 1356          }
1357 1357  
1358 1358          kstat_named_init(&sp->glds_dot5_line_error,
1359 1359              "line_errors", KSTAT_DATA_UINT32);
1360 1360          kstat_named_init(&sp->glds_dot5_burst_error,
1361 1361              "burst_errors", KSTAT_DATA_UINT32);
1362 1362          kstat_named_init(&sp->glds_dot5_signal_loss,
1363 1363              "signal_losses", KSTAT_DATA_UINT32);
1364 1364  
↓ open down ↓ 1118 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX