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/disp/fx.c | |
parent | 1eff5f7761619411b3c31280fcd96cefc32968b7 (diff) | |
download | illumos-gate-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/disp/fx.c')
-rw-r--r-- | usr/src/uts/common/disp/fx.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/usr/src/uts/common/disp/fx.c b/usr/src/uts/common/disp/fx.c index 08a67f671f..dd6295074c 100644 --- a/usr/src/uts/common/disp/fx.c +++ b/usr/src/uts/common/disp/fx.c @@ -20,12 +20,10 @@ */ /* - * Copyright 2008 Sun Microsystems, Inc. All rights reserved. + * Copyright 2009 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ -#pragma ident "%Z%%M% %I% %E% SMI" - #include <sys/types.h> #include <sys/param.h> #include <sys/sysmacros.h> @@ -1195,7 +1193,7 @@ fx_setrun(kthread_t *t) ASSERT(THREAD_LOCK_HELD(t)); /* t should be in transition */ fxpp->fx_flags &= ~FXBACKQ; - if (t->t_disp_time != lbolt) + if (t->t_disp_time != ddi_get_lbolt()) setbackdq(t); else setfrontdq(t); @@ -1222,7 +1220,7 @@ fx_sleep(kthread_t *t) if (FX_HAS_CB(fxpp)) { FX_CB_SLEEP(FX_CALLB(fxpp), fxpp->fx_cookie); } - t->t_stime = lbolt; /* time stamp for the swapper */ + t->t_stime = ddi_get_lbolt(); /* time stamp for the swapper */ } @@ -1394,7 +1392,7 @@ fx_wakeup(kthread_t *t) ASSERT(THREAD_LOCK_HELD(t)); - t->t_stime = lbolt; /* time stamp for the swapper */ + t->t_stime = ddi_get_lbolt(); /* time stamp for the swapper */ if (FX_HAS_CB(fxpp)) { clock_t new_quantum = (clock_t)fxpp->fx_pquantum; pri_t newpri = fxpp->fx_pri; @@ -1415,7 +1413,7 @@ fx_wakeup(kthread_t *t) fxpp->fx_flags &= ~FXBACKQ; - if (t->t_disp_time != lbolt) + if (t->t_disp_time != ddi_get_lbolt()) setbackdq(t); else setfrontdq(t); |