Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/raidframe Nuke 'lockflag', a holdover from the simul...
details: https://anonhg.NetBSD.org/src/rev/867e9d424e2a
branches: trunk
changeset: 536866:867e9d424e2a
user: oster <oster%NetBSD.org@localhost>
date: Mon Sep 23 03:53:14 2002 +0000
description:
Nuke 'lockflag', a holdover from the simulation code. Thanks to Simon B.
diffstat:
sys/dev/raidframe/rf_alloclist.c | 12 +++++-------
sys/dev/raidframe/rf_alloclist.h | 10 +++++-----
2 files changed, 10 insertions(+), 12 deletions(-)
diffs (79 lines):
diff -r fa744390aedc -r 867e9d424e2a sys/dev/raidframe/rf_alloclist.c
--- a/sys/dev/raidframe/rf_alloclist.c Mon Sep 23 03:44:56 2002 +0000
+++ b/sys/dev/raidframe/rf_alloclist.c Mon Sep 23 03:53:14 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rf_alloclist.c,v 1.10 2002/09/14 17:53:57 oster Exp $ */
+/* $NetBSD: rf_alloclist.c,v 1.11 2002/09/23 03:53:14 oster Exp $ */
/*
* Copyright (c) 1995 Carnegie-Mellon University.
* All rights reserved.
@@ -37,7 +37,7 @@
***************************************************************************/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rf_alloclist.c,v 1.10 2002/09/14 17:53:57 oster Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rf_alloclist.c,v 1.11 2002/09/23 03:53:14 oster Exp $");
#include <dev/raidframe/raidframevar.h>
@@ -107,11 +107,10 @@
* increase POINTERS_PER_ALLOC_LIST_ELEMENT.
*/
void
-rf_real_AddToAllocList(l, p, size, lockflag)
+rf_real_AddToAllocList(l, p, size)
RF_AllocListElem_t *l;
void *p;
int size;
- int lockflag;
{
RF_AllocListElem_t *newelem;
@@ -120,7 +119,7 @@
RF_ASSERT(l->numPointers >= 0 && l->numPointers <= RF_POINTERS_PER_ALLOC_LIST_ELEMENT);
if (l->numPointers == RF_POINTERS_PER_ALLOC_LIST_ELEMENT) {
- newelem = rf_real_MakeAllocList(lockflag);
+ newelem = rf_real_MakeAllocList();
l->next = newelem;
l = newelem;
}
@@ -166,8 +165,7 @@
}
RF_AllocListElem_t *
-rf_real_MakeAllocList(lockflag)
- int lockflag;
+rf_real_MakeAllocList()
{
RF_AllocListElem_t *p;
diff -r fa744390aedc -r 867e9d424e2a sys/dev/raidframe/rf_alloclist.h
--- a/sys/dev/raidframe/rf_alloclist.h Mon Sep 23 03:44:56 2002 +0000
+++ b/sys/dev/raidframe/rf_alloclist.h Mon Sep 23 03:53:14 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rf_alloclist.h,v 1.4 2001/10/04 15:58:51 oster Exp $ */
+/* $NetBSD: rf_alloclist.h,v 1.5 2002/09/23 03:53:14 oster Exp $ */
/*
* Copyright (c) 1995 Carnegie-Mellon University.
* All rights reserved.
@@ -45,15 +45,15 @@
int numPointers;
RF_AllocListElem_t *next;
};
-#define rf_MakeAllocList(_ptr_) _ptr_ = rf_real_MakeAllocList(1);
-#define rf_AddToAllocList(_l_,_ptr_,_sz_) rf_real_AddToAllocList((_l_), (_ptr_), (_sz_), 1)
+#define rf_MakeAllocList(_ptr_) _ptr_ = rf_real_MakeAllocList();
+#define rf_AddToAllocList(_l_,_ptr_,_sz_) rf_real_AddToAllocList((_l_), (_ptr_), (_sz_))
int rf_ConfigureAllocList(RF_ShutdownList_t ** listp);
#if RF_UTILITY == 0
-void rf_real_AddToAllocList(RF_AllocListElem_t * l, void *p, int size, int lockflag);
+void rf_real_AddToAllocList(RF_AllocListElem_t * l, void *p, int size);
void rf_FreeAllocList(RF_AllocListElem_t * l);
-RF_AllocListElem_t *rf_real_MakeAllocList(int lockflag);
+RF_AllocListElem_t *rf_real_MakeAllocList(void);
#endif /* RF_UTILITY == 0 */
#endif /* !_RF__RF_ALLOCLIST_H_ */
Home |
Main Index |
Thread Index |
Old Index