diff options
| author | ad <ad@NetBSD.org> | 2007-12-11 03:21:30 +0000 |
|---|---|---|
| committer | ad <ad@NetBSD.org> | 2007-12-11 03:21:30 +0000 |
| commit | 5a5d5865cd527cf580e00ff5d713e4fc3003b006 (patch) | |
| tree | ad9f540b78b012e8f7cac08983903feba19e082d /lib/libpthread/pthread.c | |
| parent | 3c979da1e6e44612ab97a727c667cc94b060992b (diff) | |
Remove test of pthread__osrev that is no longer needed.
Diffstat (limited to 'lib/libpthread/pthread.c')
| -rw-r--r-- | lib/libpthread/pthread.c | 17 |
1 files changed, 2 insertions, 15 deletions
diff --git a/lib/libpthread/pthread.c b/lib/libpthread/pthread.c index c0cda627224..a4b3bfa64d7 100644 --- a/lib/libpthread/pthread.c +++ b/lib/libpthread/pthread.c @@ -1,4 +1,4 @@ -/* $NetBSD: pthread.c,v 1.92 2007/12/04 16:08:28 yamt Exp $ */ +/* $NetBSD: pthread.c,v 1.93 2007/12/11 03:21:30 ad Exp $ */ /*- * Copyright (c) 2001, 2002, 2003, 2006, 2007 The NetBSD Foundation, Inc. @@ -37,7 +37,7 @@ */ #include <sys/cdefs.h> -__RCSID("$NetBSD: pthread.c,v 1.92 2007/12/04 16:08:28 yamt Exp $"); +__RCSID("$NetBSD: pthread.c,v 1.93 2007/12/11 03:21:30 ad Exp $"); #define __EXPOSE_STACK 1 @@ -977,19 +977,6 @@ pthread__park(pthread_t self, pthread_spin_t *lock, */ self->pt_blocking++; - /* - * Kernels before 4.99.27 can't park and unpark in one step, - * so take care of it now if on an old kernel. - * - * XXX Remove this check before NetBSD 5.0 is released. - * It's for compatibility with recent -current only. - */ - if (__predict_false(pthread__osrev < 499002700) && - self->pt_unpark != 0) { - _lwp_unpark(self->pt_unpark, self->pt_unparkhint); - self->pt_unpark = 0; - } - /* * Wait until we are awoken by a pending unpark operation, * a signal, an unpark posted after we have gone asleep, |
