From f78020a2f433a44bef760cf9083cbc42ed37c360 Mon Sep 17 00:00:00 2001 From: mrg Date: Sun, 1 May 2011 10:01:01 +0000 Subject: convert eq_mutex to a kmutex. convert ltsleep() used for plain timeout into kpause(). --- sys/dev/raidframe/rf_threadstuff.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sys/dev/raidframe/rf_threadstuff.h') 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. -- cgit