Skip to content

Commit

Permalink
xen/events: remove unnecessary call to bind_evtchn_to_cpu()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
David Vrabel authored and Konrad Rzeszutek Wilk committed Feb 28, 2014
1 parent 4640ddf commit 4201cdb
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions drivers/xen/events/events_base.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 4201cdb

Please sign in to comment.