summaryrefslogtreecommitdiff
path: root/sys/arch/macppc/dev
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2012-10-08 20:06:38 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2012-10-08 20:06:38 +0000
commit80b0734e38d576e932c2d7cce09329121575a646 (patch)
treec064d5ab98e430306e91362574490e6de6974751 /sys/arch/macppc/dev
parent80651c1b2a7bb27a12461fcbeedf60f9e8002079 (diff)
push irqloop warnings into #ifdef DEBUG
Diffstat (limited to 'sys/arch/macppc/dev')
-rw-r--r--sys/arch/macppc/dev/openpic.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/arch/macppc/dev/openpic.c b/sys/arch/macppc/dev/openpic.c
index ac3008f3fda..d07df8ac68e 100644
--- a/sys/arch/macppc/dev/openpic.c
+++ b/sys/arch/macppc/dev/openpic.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: openpic.c,v 1.68 2011/10/28 15:18:51 drahn Exp $ */
+/* $OpenBSD: openpic.c,v 1.69 2012/10/08 20:06:37 deraadt Exp $ */
/*-
* Copyright (c) 2008 Dale Rahn <drahn@openbsd.org>
@@ -576,16 +576,20 @@ openpic_ext_intr()
while (irq != 255) {
openpic_irqloop[ci->ci_cpuid]++;
+#ifdef DEBUG
if (openpic_irqloop[ci->ci_cpuid] > 20 ||
openpic_irqnest[ci->ci_cpuid] > 3) {
printf("irqloop %d irqnest %d\n",
openpic_irqloop[ci->ci_cpuid],
openpic_irqnest[ci->ci_cpuid]);
}
+#endif
if (openpic_irqloop[ci->ci_cpuid] > 20) {
+#ifdef DEBUG
printf("irqloop %d irqnest %d: returning\n",
openpic_irqloop[ci->ci_cpuid],
openpic_irqnest[ci->ci_cpuid]);
+#endif
openpic_irqnest[ci->ci_cpuid]--;
return;
}