From dae3dc73f66189deaff9a2e5ec6f55c1bffaa94a Mon Sep 17 00:00:00 2001 From: Neel Natu Date: Thu, 7 Feb 2013 06:48:47 +0000 Subject: If an interrupt event's assign_cpu method fails, then restore the original cpuset mask for the associated interrupt thread. The text used above is verbatim from r195249 and the code should now be in line with the intent of that commit. --- sys/kern/kern_intr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys') diff --git a/sys/kern/kern_intr.c b/sys/kern/kern_intr.c index bce23972b1df..d2c31fd479c8 100644 --- a/sys/kern/kern_intr.c +++ b/sys/kern/kern_intr.c @@ -336,7 +336,7 @@ intr_event_bind(struct intr_event *ie, u_char cpu) if (ie->ie_cpu == NOCPU) CPU_COPY(cpuset_root, &mask); else - CPU_SET(cpu, &mask); + CPU_SET(ie->ie_cpu, &mask); id = ie->ie_thread->it_thread->td_tid; mtx_unlock(&ie->ie_lock); (void)cpuset_setthread(id, &mask); -- cgit v1.3