diff options
| author | ad <ad@NetBSD.org> | 2008-06-23 10:38:39 +0000 |
|---|---|---|
| committer | ad <ad@NetBSD.org> | 2008-06-23 10:38:39 +0000 |
| commit | edbc7575ccf6093bad96db8cb6f3a74594836e17 (patch) | |
| tree | a830122ed25dad17669499a5bb44076789fd2802 /lib/libpthread/pthread_specific.c | |
| parent | d6c32b235a4e05ba57778334ed1cf9c37a5b32ed (diff) | |
pthread_curcpu_np: remove hack for pthread_dummy_lwpctl.
Diffstat (limited to 'lib/libpthread/pthread_specific.c')
| -rw-r--r-- | lib/libpthread/pthread_specific.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/lib/libpthread/pthread_specific.c b/lib/libpthread/pthread_specific.c index b93a38456ba..8eb58e0dd5a 100644 --- a/lib/libpthread/pthread_specific.c +++ b/lib/libpthread/pthread_specific.c @@ -1,4 +1,4 @@ -/* $NetBSD: pthread_specific.c,v 1.20 2008/04/28 20:23:01 martin Exp $ */ +/* $NetBSD: pthread_specific.c,v 1.21 2008/06/23 10:38:39 ad Exp $ */ /*- * Copyright (c) 2001, 2007 The NetBSD Foundation, Inc. @@ -30,7 +30,7 @@ */ #include <sys/cdefs.h> -__RCSID("$NetBSD: pthread_specific.c,v 1.20 2008/04/28 20:23:01 martin Exp $"); +__RCSID("$NetBSD: pthread_specific.c,v 1.21 2008/06/23 10:38:39 ad Exp $"); /* Functions and structures dealing with thread-specific data */ @@ -72,11 +72,6 @@ pthread_getspecific(pthread_key_t key) unsigned int pthread_curcpu_np(void) { - unsigned int cpu = pthread__self()->pt_lwpctl->lc_curcpu; - /* for pthread__dummy_lwpctl */ - if (cpu == (unsigned int)LWPCTL_CPU_NONE) - return 0; - - return cpu; + return pthread__self()->pt_lwpctl->lc_curcpu; } |
