aboutsummaryrefslogtreecommitdiff
path: root/sys/arm/mv/ic.c
diff options
context:
space:
mode:
authorMarcel Moolenaar <marcel@FreeBSD.org>2009-06-09 18:18:41 +0000
committerMarcel Moolenaar <marcel@FreeBSD.org>2009-06-09 18:18:41 +0000
commit272489fe599f84b293d149b9f38e7f001867037f (patch)
treee846e3361c689dff739f93bdcff26f51b315917d /sys/arm/mv/ic.c
parent7d34f41a7af86c2b7b2f544edd1b330623c6c48c (diff)
downloadsrc-272489fe599f84b293d149b9f38e7f001867037f.tar.gz
src-272489fe599f84b293d149b9f38e7f001867037f.zip
Pass the previously returned IRQ back to arm_get_next_irq() so that
the implementation can guarantee forward progress in the event of a stuck interrupt or interrupt storm. This is especially critical for fast interrupt handlers, as they can cause a hard hang in that case. When first called, arm_get_next_irq() is passed -1. Obtained from: Juniper Networks, Inc.
Notes
Notes: svn path=/head/; revision=193847
Diffstat (limited to 'sys/arm/mv/ic.c')
-rw-r--r--sys/arm/mv/ic.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/arm/mv/ic.c b/sys/arm/mv/ic.c
index d449e16f06d0..8861dc1f49e5 100644
--- a/sys/arm/mv/ic.c
+++ b/sys/arm/mv/ic.c
@@ -137,7 +137,7 @@ static devclass_t mv_ic_devclass;
DRIVER_MODULE(ic, mbus, mv_ic_driver, mv_ic_devclass, 0, 0);
int
-arm_get_next_irq(void)
+arm_get_next_irq(int last __unused)
{
int irq;