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 dependencies on rf_cpuutils.h.



details:   https://anonhg.NetBSD.org/src/rev/8347dec56c13
branches:  trunk
changeset: 480304:8347dec56c13
user:      oster <oster%NetBSD.org@localhost>
date:      Sun Jan 09 03:14:32 2000 +0000

description:
Nuke dependencies on rf_cpuutils.h.

diffstat:

 sys/dev/raidframe/rf_driver.c      |   4 +---
 sys/dev/raidframe/rf_reconstruct.c |  11 +++--------
 2 files changed, 4 insertions(+), 11 deletions(-)

diffs (76 lines):

diff -r 8f0576ecb028 -r 8347dec56c13 sys/dev/raidframe/rf_driver.c
--- a/sys/dev/raidframe/rf_driver.c     Sun Jan 09 03:06:35 2000 +0000
+++ b/sys/dev/raidframe/rf_driver.c     Sun Jan 09 03:14:32 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rf_driver.c,v 1.24 2000/01/09 01:29:28 oster Exp $     */
+/*     $NetBSD: rf_driver.c,v 1.25 2000/01/09 03:14:32 oster Exp $     */
 /*-
  * Copyright (c) 1999 The NetBSD Foundation, Inc.
  * All rights reserved.
@@ -114,7 +114,6 @@
 #include "rf_driver.h"
 #include "rf_options.h"
 #include "rf_shutdown.h"
-#include "rf_cpuutil.h"
 #include "rf_kintf.h"
 
 #include <sys/buf.h>
@@ -424,7 +423,6 @@
                DO_INIT_CONFIGURE(rf_ConfigureReconstruction);
                DO_INIT_CONFIGURE(rf_ConfigureCopyback);
                DO_INIT_CONFIGURE(rf_ConfigureDiskQueueSystem);
-               DO_INIT_CONFIGURE(rf_ConfigureCpuMonitor);
                isconfigged = 1;
        }
        RF_UNLOCK_MUTEX(configureMutex);
diff -r 8f0576ecb028 -r 8347dec56c13 sys/dev/raidframe/rf_reconstruct.c
--- a/sys/dev/raidframe/rf_reconstruct.c        Sun Jan 09 03:06:35 2000 +0000
+++ b/sys/dev/raidframe/rf_reconstruct.c        Sun Jan 09 03:14:32 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rf_reconstruct.c,v 1.13 2000/01/09 01:45:58 oster Exp $        */
+/*     $NetBSD: rf_reconstruct.c,v 1.14 2000/01/09 03:14:33 oster Exp $        */
 /*
  * Copyright (c) 1995 Carnegie-Mellon University.
  * All rights reserved.
@@ -59,7 +59,6 @@
 #include "rf_debugprint.h"
 #include "rf_driver.h"
 #include "rf_utils.h"
-#include "rf_cpuutil.h"
 #include "rf_shutdown.h"
 
 #include "rf_kintf.h"
@@ -667,7 +666,7 @@
 
                /* now start up the actual reconstruction: issue a read for
                 * each surviving disk */
-               rf_start_cpu_monitor();
+
                reconDesc->numDisksDone = 0;
                for (i = 0; i < raidPtr->numCol; i++) {
                        if (i != col) {
@@ -735,15 +734,11 @@
                reconDesc->state = 5;
 
        case 5:
-               rf_stop_cpu_monitor();
-
                /* Success:  mark the dead disk as reconstructed.  We quiesce
                 * the array here to assure no nasty interactions with pending
                 * user accesses when we free up the psstatus structure as
                 * part of FreeReconControl() */
 
-
-
                reconDesc->state = 6;
 
                retcode = rf_SuspendNewRequestsAndWait(raidPtr);
@@ -784,7 +779,7 @@
                    (int) raidPtr->reconControl[row]->starttime.tv_sec,
                    (int) raidPtr->reconControl[row]->starttime.tv_usec,
                    (int) etime.tv_sec, (int) etime.tv_usec);
-               rf_print_cpu_util("reconstruction");
+
 #if RF_RECON_STATS > 0
                printf("Total head-sep stall count was %d\n",
                    (int) reconDesc->hsStallCount);



Home | Main Index | Thread Index | Old Index