Skip to content

Commit ef1c2cc

Browse files
committed
xen/events: Add support for effective affinity mask
Update the effective affinity mask when an interrupt was successfully targeted to a CPU. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Cc: Jens Axboe <axboe@kernel.dk> Cc: Marc Zyngier <marc.zyngier@arm.com> Cc: Michael Ellerman <mpe@ellerman.id.au> Cc: Keith Busch <keith.busch@intel.com> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Christoph Hellwig <hch@lst.de> Link: http://lkml.kernel.org/r/20170619235446.799944725@linutronix.de
1 parent 0e24f7c commit ef1c2cc

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

drivers/xen/events/events_base.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1343,8 +1343,12 @@ static int set_affinity_irq(struct irq_data *data, const struct cpumask *dest,
13431343
bool force)
13441344
{
13451345
unsigned tcpu = cpumask_first_and(dest, cpu_online_mask);
1346+
int ret = rebind_irq_to_cpu(data->irq, tcpu);
13461347

1347-
return rebind_irq_to_cpu(data->irq, tcpu);
1348+
if (!ret)
1349+
irq_data_update_effective_affinity(data, cpumask_of(tcpu));
1350+
1351+
return ret;
13481352
}
13491353

13501354
static void enable_dynirq(struct irq_data *data)

0 commit comments

Comments
 (0)