aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/xen/events.c
diff options
context:
space:
mode:
authorIan Campbell <ian.campbell@citrix.com>2011-03-10 11:08:02 -0500
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>2011-03-10 14:48:32 -0500
commitbe49472f0460455e8e0d9e6593837e09cbcc9ad7 (patch)
tree84f1163260aff2766ba460de502ad29fab663948 /drivers/xen/events.c
parent71eef7d1e3d9df760897fdd2cad6949a8bcf1620 (diff)
xen: events: separate two unrelated halves of if condition
Clarifies which bit the comment applies to. Signed-off-by: Ian Campbell <ian.campbell@citrix.com> Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Diffstat (limited to 'drivers/xen/events.c')
-rw-r--r--drivers/xen/events.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/drivers/xen/events.c b/drivers/xen/events.c
index 6befe6227159..684b0950538a 100644
--- a/drivers/xen/events.c
+++ b/drivers/xen/events.c
@@ -1143,10 +1143,14 @@ static int rebind_irq_to_cpu(unsigned irq, unsigned tcpu)
1143 struct evtchn_bind_vcpu bind_vcpu; 1143 struct evtchn_bind_vcpu bind_vcpu;
1144 int evtchn = evtchn_from_irq(irq); 1144 int evtchn = evtchn_from_irq(irq);
1145 1145
1146 /* events delivered via platform PCI interrupts are always 1146 if (!VALID_EVTCHN(evtchn))
1147 * routed to vcpu 0 */ 1147 return -1;
1148 if (!VALID_EVTCHN(evtchn) || 1148
1149 (xen_hvm_domain() && !xen_have_vector_callback)) 1149 /*
1150 * Events delivered via platform PCI interrupts are always
1151 * routed to vcpu 0 and hence cannot be rebound.
1152 */
1153 if (xen_hvm_domain() && !xen_have_vector_callback)
1150 return -1; 1154 return -1;
1151 1155
1152 /* Send future instances of this interrupt to other vcpu. */ 1156 /* Send future instances of this interrupt to other vcpu. */