diff options
| author | mrg <mrg@NetBSD.org> | 2011-05-01 10:01:01 +0000 |
|---|---|---|
| committer | mrg <mrg@NetBSD.org> | 2011-05-01 10:01:01 +0000 |
| commit | f78020a2f433a44bef760cf9083cbc42ed37c360 (patch) | |
| tree | 3bd2446ea252b48fb258526ac0ea67ef2fcc64a5 /sys/dev/raidframe/rf_threadstuff.h | |
| parent | af1ef5cc31e6ff645ce013f4856cebc6602aed04 (diff) | |
convert eq_mutex to a kmutex.
convert ltsleep() used for plain timeout into kpause().
Diffstat (limited to 'sys/dev/raidframe/rf_threadstuff.h')
| -rw-r--r-- | sys/dev/raidframe/rf_threadstuff.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/raidframe/rf_threadstuff.h b/sys/dev/raidframe/rf_threadstuff.h index c27de0accd3..6a646c3f9aa 100644 --- a/sys/dev/raidframe/rf_threadstuff.h +++ b/sys/dev/raidframe/rf_threadstuff.h @@ -1,4 +1,4 @@ -/* $NetBSD: rf_threadstuff.h,v 1.26 2011/04/30 01:44:36 mrg Exp $ */ +/* $NetBSD: rf_threadstuff.h,v 1.27 2011/05/01 10:01:01 mrg Exp $ */ /* * Copyright (c) 1995 Carnegie-Mellon University. * All rights reserved. @@ -91,6 +91,8 @@ typedef void *RF_ThreadArg_t; #define rf_signal_cond2(_c_) cv_signal(&(_c_)) #define rf_broadcast_cond2(_c_) cv_broadcast(&(_c_)) +#define rf_sleep(_w_,_t_,_m_) kpause((_w_), false, (_t_), &(_m_)) + /* * In NetBSD, kernel threads are simply processes which share several * substructures and never run in userspace. |
