aboutsummaryrefslogtreecommitdiff
path: root/sys/sun4v
diff options
context:
space:
mode:
authorJeff Roberson <jeff@FreeBSD.org>2008-04-11 03:26:41 +0000
committerJeff Roberson <jeff@FreeBSD.org>2008-04-11 03:26:41 +0000
commit9b33b154b531606eccfc091faf50467eca0573f1 (patch)
tree91b4d4ec9731a09d54fc444ce35eff70bab076be /sys/sun4v
parent14320f1e7f93a63a36dd0b005b0fd920d5a965c6 (diff)
downloadsrc-9b33b154b531606eccfc091faf50467eca0573f1.tar.gz
src-9b33b154b531606eccfc091faf50467eca0573f1.zip
- Add the interrupt vector number to intr_event_create so MI code can
lookup hard interrupt events by number. Ignore the irq# for soft intrs. - Add support to cpuset for binding hardware interrupts. This has the side effect of binding any ithread associated with the hard interrupt. As per restrictions imposed by MD code we can only bind interrupts to a single cpu presently. Interrupts can be 'unbound' by binding them to all cpus. Reviewed by: jhb Sponsored by: Nokia
Notes
Notes: svn path=/head/; revision=178092
Diffstat (limited to 'sys/sun4v')
-rw-r--r--sys/sun4v/sun4v/intr_machdep.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/sun4v/sun4v/intr_machdep.c b/sys/sun4v/sun4v/intr_machdep.c
index 9dcfd3eafa12..4192e0bd49fb 100644
--- a/sys/sun4v/sun4v/intr_machdep.c
+++ b/sys/sun4v/sun4v/intr_machdep.c
@@ -307,8 +307,8 @@ inthand_add(const char *name, int vec, driver_filter_t *filt,
ie = iv->iv_event;
mtx_unlock_spin(&intr_table_lock);
if (ie == NULL) {
- errcode = intr_event_create(&ie, (void *)(intptr_t)vec, 0, NULL,
- intr_enable, intr_enable, NULL, "vec%d:", vec);
+ errcode = intr_event_create(&ie, (void *)(intptr_t)vec, 0, vec,
+ NULL, intr_enable, intr_enable, NULL, "vec%d:", vec);
if (errcode)
return (errcode);
mtx_lock_spin(&intr_table_lock);