Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 28 Dec 2008 07:06:20 +0000 (UTC)
From:      Kip Macy <kmacy@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-projects@freebsd.org
Subject:   svn commit: r186537 - projects/releng_7_xen/sys/xen/evtchn
Message-ID:  <200812280706.mBS76Klr006026@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200812280706.mBS76Klr006026>