Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/sparc/sparc Minor cleanup. Garbage-collect unused ...
details: https://anonhg.NetBSD.org/src/rev/c824ea7f8a74
branches: trunk
changeset: 516198:c824ea7f8a74
user: uwe <uwe%NetBSD.org@localhost>
date: Thu Oct 18 12:32:25 2001 +0000
description:
Minor cleanup. Garbage-collect unused declaration of comsoft() now
that sparc has generic soft interrupts. In softnet() - return
immediately if netisr is zero.
diffstat:
sys/arch/sparc/sparc/intr.c | 10 ++++------
1 files changed, 4 insertions(+), 6 deletions(-)
diffs (31 lines):
diff -r 1be084b75fc3 -r c824ea7f8a74 sys/arch/sparc/sparc/intr.c
--- a/sys/arch/sparc/sparc/intr.c Thu Oct 18 12:28:50 2001 +0000
+++ b/sys/arch/sparc/sparc/intr.c Thu Oct 18 12:32:25 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: intr.c,v 1.55 2001/09/27 02:05:44 mrg Exp $ */
+/* $NetBSD: intr.c,v 1.56 2001/10/18 12:32:25 uwe Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -71,11 +71,6 @@
#include <machine/db_machdep.h>
#endif
-#include "com.h"
-#if NCOM > 0
-extern void comsoft __P((void));
-#endif
-
void *softnet_cookie;
void strayintr __P((struct clockframe *));
@@ -122,6 +117,9 @@
netisr = 0;
splx(s);
+ if (n == 0)
+ return;
+
#define DONETISR(bit, fn) do { \
if (n & (1 << bit)) \
fn(); \
Home |
Main Index |
Thread Index |
Old Index