Nuke RF_DECLARE_GLOBAL_THREADID, rf_setup_threadid(), rf_shutdown_threadid(),

and rf_assign_threadid().  rf_threadid.h, your days are numbered.
This commit is contained in:
oster 2000-01-07 03:25:34 +00:00
parent fa8c26f547
commit e5ce17d0eb
4 changed files with 4 additions and 18 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: rf_driver.c,v 1.20 2000/01/07 03:03:44 oster Exp $ */
/* $NetBSD: rf_driver.c,v 1.21 2000/01/07 03:25:34 oster Exp $ */
/*-
* Copyright (c) 1999 The NetBSD Foundation, Inc.
* All rights reserved.
@ -148,8 +148,6 @@ void rf_update_component_labels( RF_Raid_t *);
RF_DECLARE_MUTEX(rf_printf_mutex) /* debug only: avoids interleaved
* printfs by different stripes */
RF_DECLARE_GLOBAL_THREADID /* declarations for threadid.h */
#define SIGNAL_QUIESCENT_COND(_raid_) wakeup(&((_raid_)->accesses_suspended))
#define WAIT_FOR_QUIESCENCE(_raid_) \
@ -182,9 +180,6 @@ rf_BootRaidframe()
return (EBUSY);
raidframe_booted = 1;
rf_setup_threadid();
rf_assign_threadid();
rc = rf_mutex_init(&configureMutex);
if (rc) {
RF_ERRORMSG3("Unable to init mutex file %s line %d rc=%d\n", __FILE__,
@ -239,7 +234,6 @@ rf_UnconfigureArray()
if (rc) {
RF_ERRORMSG1("RAIDFRAME: unable to do global shutdown, rc=%d\n", rc);
}
rf_shutdown_threadid();
/*
* We must wait until now, because the AllocList module

View File

@ -1,4 +1,4 @@
/* $NetBSD: rf_engine.c,v 1.6 2000/01/05 02:57:29 oster Exp $ */
/* $NetBSD: rf_engine.c,v 1.7 2000/01/07 03:25:34 oster Exp $ */
/*
* Copyright (c) 1995 Carnegie-Mellon University.
* All rights reserved.
@ -724,7 +724,6 @@ DAGExecutionThread(RF_ThreadArg_t arg)
raidPtr = (RF_Raid_t *) arg;
rf_assign_threadid();
if (rf_engineDebug) {
rf_get_threadid(tid);
printf("[%d] Engine thread is running\n", tid);

View File

@ -1,4 +1,4 @@
/* $NetBSD: rf_paritylogDiskMgr.c,v 1.4 1999/08/13 03:41:57 oster Exp $ */
/* $NetBSD: rf_paritylogDiskMgr.c,v 1.5 2000/01/07 03:25:35 oster Exp $ */
/*
* Copyright (c) 1995 Carnegie-Mellon University.
* All rights reserved.
@ -554,8 +554,6 @@ rf_ParityLoggingDiskManager(RF_Raid_t * raidPtr)
RF_ParityLog_t *reintQueue, *flushQueue;
int workNeeded, done = RF_FALSE;
rf_assign_threadid(); /* don't remove this line */
/* Main program for parity logging disk thread. This routine waits
* for work to appear in either the flush or reintegration queues and
* is responsible for flushing core logs to the log disk as well as

View File

@ -1,4 +1,4 @@
/* $NetBSD: rf_threadid.h,v 1.3 1999/02/05 00:06:18 oster Exp $ */
/* $NetBSD: rf_threadid.h,v 1.4 2000/01/07 03:25:35 oster Exp $ */
/*
* Copyright (c) 1995 Carnegie-Mellon University.
* All rights reserved.
@ -44,11 +44,6 @@
* Kernel
*/
#define RF_DECLARE_GLOBAL_THREADID
#define rf_setup_threadid()
#define rf_shutdown_threadid()
#define rf_assign_threadid()
#define rf_get_threadid(_id_) _id_ = 0;
#endif /* !_RF__RF_THREADID_H_ */