diff options
author | Rafael Vanoni <rafael.vanoni@sun.com> | 2009-11-13 01:32:32 -0800 |
---|---|---|
committer | Rafael Vanoni <rafael.vanoni@sun.com> | 2009-11-13 01:32:32 -0800 |
commit | d3d50737e566cade9a08d73d2af95105ac7cd960 (patch) | |
tree | 399b76a3f6bf107e2ff506d8f9c3333654b29fc7 /usr/src/uts/common/rpc/clnt_clts.c | |
parent | 1eff5f7761619411b3c31280fcd96cefc32968b7 (diff) | |
download | illumos-joyent-d3d50737e566cade9a08d73d2af95105ac7cd960.tar.gz |
PSARC/2009/396 Tickless Kernel Architecture / lbolt decoupling
6860030 tickless clock requires a clock() decoupled lbolt / lbolt64
Portions contributed by Chad Mynhier <cmynhier@gmail.com>
Diffstat (limited to 'usr/src/uts/common/rpc/clnt_clts.c')
-rw-r--r-- | usr/src/uts/common/rpc/clnt_clts.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/usr/src/uts/common/rpc/clnt_clts.c b/usr/src/uts/common/rpc/clnt_clts.c index b4386df80c..202615b9e7 100644 --- a/usr/src/uts/common/rpc/clnt_clts.c +++ b/usr/src/uts/common/rpc/clnt_clts.c @@ -579,7 +579,7 @@ call_again: goto done; } - round_trip = lbolt; + round_trip = ddi_get_lbolt(); error = clnt_clts_dispatch_send(p->cku_endpnt->e_wq, mp, &p->cku_addr, call, p->cku_xid, p->cku_cred); @@ -628,7 +628,7 @@ tryread: if (lwp != NULL) lwp->lwp_nostop++; - cv_timout += lbolt; + cv_timout += ddi_get_lbolt(); if (h->cl_nosignal) while ((cv_wait_ret = @@ -771,7 +771,7 @@ getresponse: resp = tmp; } - round_trip = lbolt - round_trip; + round_trip = ddi_get_lbolt() - round_trip; /* * Van Jacobson timer algorithm here, only if NOT a retransmission. */ @@ -1006,7 +1006,6 @@ done: * and try again. */ (void) delay(hz/10); - /* (void) sleep((caddr_t)&lbolt, PZERO-4); */ } if (stries-- > 0) { RCSTAT_INCR(p->cku_stats, rcretrans); |