Only call pcons_dopoll() if there's a pcons device.

This commit is contained in:
eeh 2000-09-29 00:27:13 +00:00
parent a04669c405
commit 15eaba378c
1 changed files with 4 additions and 1 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: intr.c,v 1.33 2000/09/28 15:38:49 eeh Exp $ */ /* $NetBSD: intr.c,v 1.34 2000/09/29 00:27:13 eeh Exp $ */
/* /*
* Copyright (c) 1992, 1993 * Copyright (c) 1992, 1993
@ -45,6 +45,7 @@
*/ */
#include "opt_ddb.h" #include "opt_ddb.h"
#include "pcons.h"
#include <sys/param.h> #include <sys/param.h>
#include <sys/systm.h> #include <sys/systm.h>
@ -130,9 +131,11 @@ int
softintr(fp) softintr(fp)
void *fp; void *fp;
{ {
#if NPCONS >0
extern void pcons_dopoll __P((void)); extern void pcons_dopoll __P((void));
pcons_dopoll(); pcons_dopoll();
#endif
return (1); return (1);
} }