Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern Remove unused global `consintr'. Rob Black, kern/3...
details: https://anonhg.NetBSD.org/src/rev/5ee586e16fa4
branches: trunk
changeset: 481332:5ee586e16fa4
user: thorpej <thorpej%NetBSD.org@localhost>
date: Wed Jan 26 07:50:33 2000 +0000
description:
Remove unused global `consintr'. Rob Black, kern/3841.
diffstat:
sys/kern/subr_prf.c | 13 +++----------
1 files changed, 3 insertions(+), 10 deletions(-)
diffs (60 lines):
diff -r ff4aa940da59 -r 5ee586e16fa4 sys/kern/subr_prf.c
--- a/sys/kern/subr_prf.c Wed Jan 26 07:35:51 2000 +0000
+++ b/sys/kern/subr_prf.c Wed Jan 26 07:50:33 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: subr_prf.c,v 1.65 1999/12/13 01:29:03 sommerfeld Exp $ */
+/* $NetBSD: subr_prf.c,v 1.66 2000/01/26 07:50:33 thorpej Exp $ */
/*-
* Copyright (c) 1986, 1988, 1991, 1993
@@ -138,7 +138,6 @@
*/
struct tty *constty; /* pointer to console "window" tty */
-int consintr = 1; /* ok to handle console interrupts? */
extern int log_open; /* subr_log: is /dev/klog open? */
const char *panicstr; /* arg to first call to panic (used as a flag
to indicate that panic has already been called). */
@@ -580,12 +579,10 @@
#endif
{
va_list ap;
- int s, savintr;
+ int s;
KPRINTF_MUTEX_ENTER(s);
- savintr = consintr; /* disable interrupts */
- consintr = 0;
va_start(ap, fmt);
kprintf(fmt, TOCONS | TOLOG, NULL, NULL, ap);
va_end(ap);
@@ -594,7 +591,6 @@
if (!panicstr)
logwakeup();
- consintr = savintr; /* reenable interrupts */
}
/*
@@ -607,19 +603,16 @@
const char *fmt;
va_list ap;
{
- int s, savintr;
+ int s;
KPRINTF_MUTEX_ENTER(s);
- savintr = consintr; /* disable interrupts */
- consintr = 0;
kprintf(fmt, TOCONS | TOLOG, NULL, NULL, ap);
KPRINTF_MUTEX_EXIT(s);
if (!panicstr)
logwakeup();
- consintr = savintr; /* reenable interrupts */
}
/*
Home |
Main Index |
Thread Index |
Old Index