summaryrefslogtreecommitdiff
path: root/usr/src/uts/common/syscall/lwpsys.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/uts/common/syscall/lwpsys.c')
-rw-r--r--usr/src/uts/common/syscall/lwpsys.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/usr/src/uts/common/syscall/lwpsys.c b/usr/src/uts/common/syscall/lwpsys.c
index 8868468a44..cab8263d0d 100644
--- a/usr/src/uts/common/syscall/lwpsys.c
+++ b/usr/src/uts/common/syscall/lwpsys.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -20,7 +19,7 @@
* CDDL HEADER END
*/
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2007 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -403,7 +402,6 @@ lwp_park(timespec_t *timeoutp, id_t lwpid)
timespec_t now;
timespec_t *rqtp = NULL;
kthread_t *t = curthread;
- int timecheck = 0;
int error = 0;
model_t datamodel = ttoproc(t)->p_model;
@@ -411,7 +409,6 @@ lwp_park(timespec_t *timeoutp, id_t lwpid)
(void) lwp_unpark(lwpid);
if (timeoutp) {
- timecheck = timechanged;
gethrestime(&now);
if (datamodel == DATAMODEL_NATIVE) {
if (copyin(timeoutp, &rqtime, sizeof (timespec_t))) {
@@ -446,7 +443,7 @@ lwp_park(timespec_t *timeoutp, id_t lwpid)
error = EINTR;
while (error == 0 && t->t_unpark == 0) {
switch (cv_waituntil_sig(&t->t_delay_cv,
- &t->t_delay_lock, rqtp, timecheck)) {
+ &t->t_delay_lock, rqtp)) {
case 0:
error = EINTR;
break;