svn commit: r186537 - projects/releng_7_xen/sys/xen/evtchn
Kip Macy
kmacy at FreeBSD.org
Sat Dec 27 23:06:20 PST 2008
Author: kmacy
Date: Sun Dec 28 07:06:20 2008
New Revision: 186537
URL: http://svn.freebsd.org/changeset/base/186537
Log:
unmask evtchn in bind_{virq, ipi}_to_irq
Modified:
projects/releng_7_xen/sys/xen/evtchn/evtchn.c
Modified: projects/releng_7_xen/sys/xen/evtchn/evtchn.c
==============================================================================
--- projects/releng_7_xen/sys/xen/evtchn/evtchn.c Sun Dec 28 06:16:35 2008 (r186536)
+++ projects/releng_7_xen/sys/xen/evtchn/evtchn.c Sun Dec 28 07:06:20 2008 (r186537)
@@ -364,7 +364,7 @@ static int
bind_virq_to_irq(unsigned int virq, unsigned int cpu)
{
struct evtchn_bind_virq bind_virq;
- int evtchn, irq;
+ int evtchn = 0, irq;
mtx_lock_spin(&irq_mapping_update_lock);
@@ -388,6 +388,7 @@ bind_virq_to_irq(unsigned int virq, unsi
}
irq_bindcount[irq]++;
+ unmask_evtchn(evtchn);
out:
mtx_unlock_spin(&irq_mapping_update_lock);
@@ -401,8 +402,9 @@ int
bind_ipi_to_irq(unsigned int ipi, unsigned int cpu)
{
struct evtchn_bind_ipi bind_ipi;
- int evtchn, irq;
-
+ int irq;
+ int evtchn = 0;
+
mtx_lock_spin(&irq_mapping_update_lock);
if ((irq = per_cpu(ipi_to_irq, cpu)[ipi]) == -1) {
@@ -421,6 +423,7 @@ bind_ipi_to_irq(unsigned int ipi, unsign
bind_evtchn_to_cpu(evtchn, cpu);
}
irq_bindcount[irq]++;
+ unmask_evtchn(evtchn);
out:
mtx_unlock_spin(&irq_mapping_update_lock);
More information about the svn-src-projects
mailing list