diff options
author | qiao <none@none> | 2007-02-13 14:18:11 -0800 |
---|---|---|
committer | qiao <none@none> | 2007-02-13 14:18:11 -0800 |
commit | a913396d8daab34d2fa497f49ae18d9f3d3a059f (patch) | |
tree | 6893eeca3cc8f450567f222c9b1db33dc6e6d61a /usr/src/uts/common/os/logsubr.c | |
parent | 3125ebfc35130d243e775dc38a6a59be4df0b137 (diff) | |
download | illumos-joyent-a913396d8daab34d2fa497f49ae18d9f3d3a059f.tar.gz |
6265036 cv_waituntil_sig() often returns early
Diffstat (limited to 'usr/src/uts/common/os/logsubr.c')
-rw-r--r-- | usr/src/uts/common/os/logsubr.c | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/usr/src/uts/common/os/logsubr.c b/usr/src/uts/common/os/logsubr.c index d8c513586c..1f5efdebee 100644 --- a/usr/src/uts/common/os/logsubr.c +++ b/usr/src/uts/common/os/logsubr.c @@ -20,7 +20,7 @@ */ /* - * Copyright 2006 Sun Microsystems, Inc. All rights reserved. + * Copyright 2007 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ @@ -327,7 +327,7 @@ log_conswitch(log_t *src, log_t *dst) lc->flags |= SL_LOGONLY; /* - * The ttime is written with 0 in log_sensmsg() only when + * The ttime is written with 0 in log_sendmsg() only when * good gethrestime_sec() data is not available to store in * the log_ctl_t in the early boot phase. */ @@ -605,16 +605,12 @@ log_sendmsg(mblk_t *mp, zoneid_t zoneid) log_enter(); /* - * In the early boot phase hrestime is invalid, then timechanged is 0. - * If hrestime is not valid, the ttime is set to 0 here and the correct - * ttime is calculated in log_conswitch() later. The log_conswitch() - * calculation to determine the correct ttime does not use ttime data - * from these log_ctl_t structures; it only uses ttime from log_ctl_t's - * that contain good data. - * + * If we are still in the early boot phase and the hrestime is invalid, + * we set ttime to 0 so that log_conswitch() can determine the correct + * ttime with a log_ctl_t structure which contains a valid ttime stamp. */ lc->ltime = lbolt; - if (timechanged) { + if (hrestime_isvalid) { lc->ttime = gethrestime_sec(); } else { lc->ttime = 0; |