diff options
| author | mrg <mrg@NetBSD.org> | 2011-04-30 01:44:36 +0000 |
|---|---|---|
| committer | mrg <mrg@NetBSD.org> | 2011-04-30 01:44:36 +0000 |
| commit | 3190ca484048508ee0734ae0655dfdb374722307 (patch) | |
| tree | fad8e7ca2a052ddbad9f8837aee27cc42d9cdde8 /sys/dev/raidframe/rf_threadstuff.h | |
| parent | 06fac52f6d7c00610743bb7ac00d46cdad142c52 (diff) | |
- convert rf_printf_mutex to a kmutex
- convert rf_rad_lock and the per-raid "cv" to per-raid kmutex/and real cv
- use rf_mutex_init() in places, and move it with the similar definitions
Diffstat (limited to 'sys/dev/raidframe/rf_threadstuff.h')
| -rw-r--r-- | sys/dev/raidframe/rf_threadstuff.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/raidframe/rf_threadstuff.h b/sys/dev/raidframe/rf_threadstuff.h index 9ed8501eeb8..c27de0accd3 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.25 2011/04/27 07:55:15 mrg Exp $ */ +/* $NetBSD: rf_threadstuff.h,v 1.26 2011/04/30 01:44:36 mrg Exp $ */ /* * Copyright (c) 1995 Carnegie-Mellon University. * All rights reserved. @@ -70,6 +70,8 @@ typedef void *RF_ThreadArg_t; #define RF_SIGNAL_COND(_c_) wakeup_one(&(_c_)) #define RF_BROADCAST_COND(_c_) wakeup(&(_c_)) +#define rf_mutex_init(m) simple_lock_init(m) + /* Modern mutex */ /* Note that rf_declare_{mutex,cond}2() do _NOT_ append the ; */ @@ -102,6 +104,4 @@ typedef void *RF_ThreadArg_t; kthread_create(PRI_NONE, 0, NULL, (void (*)(void *))(_func_), \ (void *)(_arg_), &(_handle_), _fmt_, _fmt_arg_) -#define rf_mutex_init(m) simple_lock_init(m) - #endif /* !_RF__RF_THREADSTUFF_H_ */ |
