Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/raidframe Clean up #includes. Group function protot...



details:   https://anonhg.NetBSD.org/src/rev/e7b3c25dc1e1
branches:  trunk
changeset: 537713:e7b3c25dc1e1
user:      oster <oster%NetBSD.org@localhost>
date:      Fri Oct 04 22:56:54 2002 +0000

description:
Clean up #includes.  Group function prototypes.  Fix more 80-column lossage
that was missed before.  Cleanup a printf.

diffstat:

 sys/dev/raidframe/rf_engine.c |  31 ++++++++++++++++++-------------
 1 files changed, 18 insertions(+), 13 deletions(-)

diffs (77 lines):

diff -r 01db89c9ff0f -r e7b3c25dc1e1 sys/dev/raidframe/rf_engine.c
--- a/sys/dev/raidframe/rf_engine.c     Fri Oct 04 22:50:26 2002 +0000
+++ b/sys/dev/raidframe/rf_engine.c     Fri Oct 04 22:56:54 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rf_engine.c,v 1.24 2002/10/04 22:50:26 oster Exp $     */
+/*     $NetBSD: rf_engine.c,v 1.25 2002/10/04 22:56:54 oster Exp $     */
 /*
  * Copyright (c) 1995 Carnegie-Mellon University.
  * All rights reserved.
@@ -55,12 +55,11 @@
  ****************************************************************************/
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rf_engine.c,v 1.24 2002/10/04 22:50:26 oster Exp $");
-
-#include "rf_threadstuff.h"
+__KERNEL_RCSID(0, "$NetBSD: rf_engine.c,v 1.25 2002/10/04 22:56:54 oster Exp $");
 
 #include <sys/errno.h>
 
+#include "rf_threadstuff.h"
 #include "rf_dag.h"
 #include "rf_engine.h"
 #include "rf_etimer.h"
@@ -69,6 +68,7 @@
 #include "rf_shutdown.h"
 #include "rf_raid.h"
 
+static void rf_ShutdownEngine(void *);
 static void DAGExecutionThread(RF_ThreadArg_t arg);
 static void rf_RaidIOThread(RF_ThreadArg_t arg);
 
@@ -104,8 +104,6 @@
 #define        DO_SIGNAL(_r_) \
        RF_BROADCAST_COND((_r_)->node_queue)    /* XXX RF_SIGNAL_COND? */
 
-static void rf_ShutdownEngine(void *);
-
 static void 
 rf_ShutdownEngine(arg)
        void   *arg;
@@ -162,7 +160,8 @@
        if (RF_CREATE_ENGINE_THREAD(raidPtr->engine_thread, 
                                    DAGExecutionThread, raidPtr,
                                    "raid%d", raidPtr->raidid)) {
-               RF_ERRORMSG("RAIDFRAME: Unable to create engine thread\n");
+               printf("raid%d: Unable to create engine thread\n",
+                      raidPtr->raidid);
                return (ENOMEM);
        }
        if (RF_CREATE_ENGINE_THREAD(raidPtr->engine_helper_thread,
@@ -494,13 +493,19 @@
                                                        /* we only have to
                                                         * enqueue if we're at
                                                         * intr context */
-                                                       s->next = firelist;     /* put node on a list to
-                                                                                * be fired after we
-                                                                                * unlock */
+                                                       /* put node on
+                                                           a list to
+                                                           be fired
+                                                           after we
+                                                           unlock */
+                                                       s->next = firelist;
                                                        firelist = s;
-                                               } else {        /* enqueue the node for
-                                                                * the dag exec thread
-                                                                * to fire */
+                                               } else {        
+                                                       /* enqueue the
+                                                          node for
+                                                          the dag
+                                                          exec thread
+                                                          to fire */
                                                        RF_ASSERT(NodeReady(s));
                                                        if (q) {
                                                                q->next = s;



Home | Main Index | Thread Index | Old Index