diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2020-12-10 20:26:01 +0100 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2020-12-15 16:19:35 +0100 |
commit | 67473b8194bc3ecc42d60a4f5dc1ed479f28ed6e (patch) | |
tree | 9f6f8533a93212f53f051a3a5b4d5d3c7e3af17a /drivers/xen/events | |
parent | 3bd5371a4da68613fb3d4aaf961ed8244bcbd741 (diff) | |
download | linux-67473b8194bc3ecc42d60a4f5dc1ed479f28ed6e.tar.gz linux-67473b8194bc3ecc42d60a4f5dc1ed479f28ed6e.tar.bz2 linux-67473b8194bc3ecc42d60a4f5dc1ed479f28ed6e.zip |
xen/events: Remove disfunct affinity spreading
This function can only ever work when the event channels:
- are already established
- interrupts assigned to them
- the affinity has been set by user space already
because any newly set up event channel is forced to be bound to CPU0 and
the affinity mask of the interrupt is forced to contain cpumask_of(0).
As the CPU0 enforcement was in place _before_ this was implemented it's
entirely unclear how that can ever have worked at all.
Remove it as preparation for doing it proper.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Cc: Juergen Gross <jgross@suse.com>
Cc: Stefano Stabellini <sstabellini@kernel.org>
Link: https://lore.kernel.org/r/20201210194045.065115500@linutronix.de
Diffstat (limited to 'drivers/xen/events')
-rw-r--r-- | drivers/xen/events/events_base.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/drivers/xen/events/events_base.c b/drivers/xen/events/events_base.c index d6458e439c78..9cade1994785 100644 --- a/drivers/xen/events/events_base.c +++ b/drivers/xen/events/events_base.c @@ -1696,15 +1696,6 @@ static int set_affinity_irq(struct irq_data *data, const struct cpumask *dest, return ret; } -/* To be called with desc->lock held. */ -int xen_set_affinity_evtchn(struct irq_desc *desc, unsigned int tcpu) -{ - struct irq_data *d = irq_desc_get_irq_data(desc); - - return set_affinity_irq(d, cpumask_of(tcpu), false); -} -EXPORT_SYMBOL_GPL(xen_set_affinity_evtchn); - static void enable_dynirq(struct irq_data *data) { evtchn_port_t evtchn = evtchn_from_irq(data->irq); |