summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorisaki <isaki@NetBSD.org>2020-02-22 07:59:47 +0000
committerisaki <isaki@NetBSD.org>2020-02-22 07:59:47 +0000
commitda05fe1871f0cabdddad4cd56561e26ad05ac9cc (patch)
tree5db50add9a9ae10f243a7ae351ee0cf0656e7e34 /sys/dev
parent0a7e5edd17304fa5d5da394e33b03a56e7721fa2 (diff)
Move #if DIAGNOSTIC..#endif to correct place.
It should ignore stray interrupts regardless of DIAGNOSTIC.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/audio/audio.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/dev/audio/audio.c b/sys/dev/audio/audio.c
index ded59d141ce..60d78d81cb1 100644
--- a/sys/dev/audio/audio.c
+++ b/sys/dev/audio/audio.c
@@ -1,4 +1,4 @@
-/* $NetBSD: audio.c,v 1.48 2020/02/22 07:09:18 isaki Exp $ */
+/* $NetBSD: audio.c,v 1.49 2020/02/22 07:59:47 isaki Exp $ */
/*-
* Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -142,7 +142,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: audio.c,v 1.48 2020/02/22 07:09:18 isaki Exp $");
+__KERNEL_RCSID(0, "$NetBSD: audio.c,v 1.49 2020/02/22 07:59:47 isaki Exp $");
#ifdef _KERNEL_OPT
#include "audio.h"
@@ -5224,12 +5224,12 @@ audio_pintr(void *arg)
if (sc->sc_dying)
return;
-#if defined(DIAGNOSTIC)
if (sc->sc_pbusy == false) {
+#if defined(DIAGNOSTIC)
device_printf(sc->sc_dev, "stray interrupt\n");
+#endif
return;
}
-#endif
mixer = sc->sc_pmixer;
mixer->hw_complete_counter += mixer->frames_per_block;
@@ -5492,12 +5492,12 @@ audio_rintr(void *arg)
if (sc->sc_dying)
return;
-#if defined(DIAGNOSTIC)
if (sc->sc_rbusy == false) {
+#if defined(DIAGNOSTIC)
device_printf(sc->sc_dev, "stray interrupt\n");
+#endif
return;
}
-#endif
mixer = sc->sc_rmixer;
mixer->hw_complete_counter += mixer->frames_per_block;