From f41ac02382f47703e88058df5a18281945c265f0 Mon Sep 17 00:00:00 2001 From: oster Date: Sat, 14 Sep 2002 18:07:31 +0000 Subject: [PATCH] rf_FlushAccessTraceBuf goes bye-bye. --- sys/dev/raidframe/rf_acctrace.c | 17 +++-------------- sys/dev/raidframe/rf_acctrace.h | 3 +-- 2 files changed, 4 insertions(+), 16 deletions(-) diff --git a/sys/dev/raidframe/rf_acctrace.c b/sys/dev/raidframe/rf_acctrace.c index b421b0dee45a..690937ed236e 100644 --- a/sys/dev/raidframe/rf_acctrace.c +++ b/sys/dev/raidframe/rf_acctrace.c @@ -1,4 +1,4 @@ -/* $NetBSD: rf_acctrace.c,v 1.8 2002/09/14 17:53:57 oster Exp $ */ +/* $NetBSD: rf_acctrace.c,v 1.9 2002/09/14 18:07:31 oster Exp $ */ /* * Copyright (c) 1995 Carnegie-Mellon University. * All rights reserved. @@ -34,7 +34,7 @@ #include -__KERNEL_RCSID(0, "$NetBSD: rf_acctrace.c,v 1.8 2002/09/14 17:53:57 oster Exp $"); +__KERNEL_RCSID(0, "$NetBSD: rf_acctrace.c,v 1.9 2002/09/14 18:07:31 oster Exp $"); #include #include @@ -65,7 +65,7 @@ RF_DECLARE_MUTEX(rf_tracing_mutex) { if (rf_accessTraceBufSize) { if (accessTraceBufCount) - rf_FlushAccessTraceBuf(); + accessTraceBufCount = 0; RF_Free(access_tracebuf, rf_accessTraceBufSize * sizeof(RF_AccTraceEntry_t)); } rf_mutex_destroy(&rf_tracing_mutex); @@ -150,14 +150,3 @@ rf_LogTraceRec(raid, rec) acc->user_reccount++; } } - - -/* assumes the tracing mutex is locked at entry. In order to allow this to be called - * from interrupt context, we don't do any copyouts here, but rather just wake trace - * buffer collector thread. - */ -void -rf_FlushAccessTraceBuf() -{ - accessTraceBufCount = 0; -} diff --git a/sys/dev/raidframe/rf_acctrace.h b/sys/dev/raidframe/rf_acctrace.h index 5d8ad59e6def..e7373e6d80f8 100644 --- a/sys/dev/raidframe/rf_acctrace.h +++ b/sys/dev/raidframe/rf_acctrace.h @@ -1,4 +1,4 @@ -/* $NetBSD: rf_acctrace.h,v 1.4 2001/10/04 15:58:51 oster Exp $ */ +/* $NetBSD: rf_acctrace.h,v 1.5 2002/09/14 18:07:31 oster Exp $ */ /* * Copyright (c) 1995 Carnegie-Mellon University. * All rights reserved. @@ -128,6 +128,5 @@ RF_DECLARE_EXTERN_MUTEX(rf_tracing_mutex) int rf_ConfigureAccessTrace(RF_ShutdownList_t ** listp); void rf_LogTraceRec(RF_Raid_t * raid, RF_AccTraceEntry_t * rec); - void rf_FlushAccessTraceBuf(void); #endif /* !_RF__RF_ACCTRACE_H_ */