Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/raidframe Minor cleanup.
details: https://anonhg.NetBSD.org/src/rev/e99f7819d899
branches: trunk
changeset: 480264:e99f7819d899
user: oster <oster%NetBSD.org@localhost>
date: Sat Jan 08 03:34:31 2000 +0000
description:
Minor cleanup.
diffstat:
sys/dev/raidframe/rf_engine.c | 16 ++--------------
1 files changed, 2 insertions(+), 14 deletions(-)
diffs (37 lines):
diff -r 4bfa4937514b -r e99f7819d899 sys/dev/raidframe/rf_engine.c
--- a/sys/dev/raidframe/rf_engine.c Sat Jan 08 02:57:22 2000 +0000
+++ b/sys/dev/raidframe/rf_engine.c Sat Jan 08 03:34:31 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rf_engine.c,v 1.7 2000/01/07 03:25:34 oster Exp $ */
+/* $NetBSD: rf_engine.c,v 1.8 2000/01/08 03:34:31 oster Exp $ */
/*
* Copyright (c) 1995 Carnegie-Mellon University.
* All rights reserved.
@@ -728,13 +728,6 @@
rf_get_threadid(tid);
printf("[%d] Engine thread is running\n", tid);
}
-#ifndef __NetBSD__
- thread = current_thread();
- thread_swappable(thread, RF_FALSE);
- thread->priority = thread->sched_pri = BASEPRI_SYSTEM;
- s = spl0();
-#endif
- /* XXX what to put here XXX */
s = splbio();
@@ -809,12 +802,7 @@
DO_UNLOCK(raidPtr);
RF_THREADGROUP_DONE(&raidPtr->engine_tg);
-#ifdef __NetBSD__
+
splx(s);
kthread_exit(0);
-#else
- splx(s);
- thread_terminate(thread);
- thread_halt_self();
-#endif
}
Home |
Main Index |
Thread Index |
Old Index