Skip to content

Commit

Permalink
xen/events: Add support for effective affinity mask
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Thomas Gleixner committed Jun 22, 2017
1 parent 0e24f7c commit ef1c2cc
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion drivers/xen/events/events_base.c
Original file line number Diff line number Diff line change
Expand Up @@ -1343,8 +1343,12 @@ static int set_affinity_irq(struct irq_data *data, const struct cpumask *dest,
bool force)
{
unsigned tcpu = cpumask_first_and(dest, cpu_online_mask);
int ret = rebind_irq_to_cpu(data->irq, tcpu);

return rebind_irq_to_cpu(data->irq, tcpu);
if (!ret)
irq_data_update_effective_affinity(data, cpumask_of(tcpu));

return ret;
}

static void enable_dynirq(struct irq_data *data)
Expand Down

0 comments on commit ef1c2cc

Please sign in to comment.