xen/events: remove unnecessary call to bind_evtchn_to_cpu()
authorDavid Vrabel <david.vrabel@citrix.com>
Mon, 17 Feb 2014 17:45:17 +0000 (17:45 +0000)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Fri, 28 Feb 2014 20:26:20 +0000 (15:26 -0500)
Since bind_evtchn_to_cpu() is always called after an event channel is
bound, there is no need to call it after closing an event channel.

Signed-off-by: David Vrabel <david.vrabel@citrix.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
drivers/xen/events/events_base.c

index dca101a..9875d6e 100644 (file)
@@ -469,9 +469,6 @@ static void xen_evtchn_close(unsigned int port)
        close.port = port;
        if (HYPERVISOR_event_channel_op(EVTCHNOP_close, &close) != 0)
                BUG();
-
-       /* Closed ports are implicitly re-bound to VCPU0. */
-       bind_evtchn_to_cpu(port, 0);
 }
 
 static void pirq_query_unmask(int irq)