Skip to content

Commit 4201cdb

Browse files
David Vrabelkonradwilk
authored andcommitted
xen/events: remove unnecessary call to bind_evtchn_to_cpu()
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 <[email protected]> Signed-off-by: Konrad Rzeszutek Wilk <[email protected]> Reviewed-by: Boris Ostrovsky <[email protected]>
1 parent 4640ddf commit 4201cdb

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

drivers/xen/events/events_base.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -469,9 +469,6 @@ static void xen_evtchn_close(unsigned int port)
469469
close.port = port;
470470
if (HYPERVISOR_event_channel_op(EVTCHNOP_close, &close) != 0)
471471
BUG();
472-
473-
/* Closed ports are implicitly re-bound to VCPU0. */
474-
bind_evtchn_to_cpu(port, 0);
475472
}
476473

477474
static void pirq_query_unmask(int irq)

0 commit comments

Comments
 (0)