Marc Zyngier
64b5aaad3c
irqchip/metag-ext: Report that effective affinity is a single target
...
The metag-ext driver only targets a single CPU at a time, even if
the notional affinity is wider. Let's inform the core code
about this.
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com >
Signed-off-by: Thomas Gleixner <tglx@linutronix.de >
Cc: Andrew Lunn <andrew@lunn.ch >
Cc: James Hogan <james.hogan@imgtec.com >
Cc: Jason Cooper <jason@lakedaemon.net >
Cc: Paul Burton <paul.burton@imgtec.com >
Cc: Chris Zankel <chris@zankel.net >
Cc: Kevin Cernekee <cernekee@gmail.com >
Cc: Wei Xu <xuwei5@hisilicon.com >
Cc: Max Filippov <jcmvbkbc@gmail.com >
Cc: Florian Fainelli <f.fainelli@gmail.com >
Cc: Gregory Clement <gregory.clement@free-electrons.com >
Cc: Matt Redfearn <matt.redfearn@imgtec.com >
Cc: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com >
Link: http://lkml.kernel.org/r/20170818083925.10108-10-marc.zyngier@arm.com
2017-08-18 10:54:42 +02:00
Julia Lawall
65543b3353
irqchip/metag-ext: Improve function-level documentation
...
Drop the variable irq which ceased to be a parameter.
Issue detected using Coccinelle (http://coccinelle.lip6.fr/ )
Fixes: bd0b9ac405 ("genirq: Remove irq argument from irq flow handlers").
Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr >
Acked-by: James Hogan <james.hogan@imgtec.com >
Cc: Jason Cooper <jason@lakedaemon.net >
Cc: Marc Zyngier <marc.zyngier@arm.com >
Cc: kernel-janitors@vger.kernel.org
Cc: linux-metag@vger.kernel.org
Link: http://lkml.kernel.org/r/1475351192-27079-15-git-send-email-Julia.Lawall@lip6.fr
Signed-off-by: Thomas Gleixner <tglx@linutronix.de >
2016-10-05 11:53:35 +02:00
Thomas Gleixner
bd0b9ac405
genirq: Remove irq argument from irq flow handlers
...
Most interrupt flow handlers do not use the irq argument. Those few
which use it can retrieve the irq number from the irq descriptor.
Remove the argument.
Search and replace was done with coccinelle and some extra helper
scripts around it. Thanks to Julia for her help!
Signed-off-by: Thomas Gleixner <tglx@linutronix.de >
Cc: Julia Lawall <Julia.Lawall@lip6.fr >
Cc: Jiang Liu <jiang.liu@linux.intel.com >
2015-09-16 15:47:51 +02:00
Thomas Gleixner
0a2b64979a
irqchip/metag-ext: Use irq_set_chip_handler_name_locked()
...
Hand in irq_data and avoid the redundant lookup of irq_desc.
Originally-from: Jiang Liu <jiang.liu@linux.intel.com >
Signed-off-by: Thomas Gleixner <tglx@linutronix.de >
2015-07-12 09:39:11 +02:00
James Hogan
f229006ec6
irq-metag*: stop set_affinity vectoring to offline cpus
...
Fix irq_set_affinity callbacks in the Meta IRQ chip drivers to AND
cpu_online_mask into the cpumask when picking a CPU to vector the
interrupt to.
As Thomas pointed out, the /proc/irq/$N/smp_affinity interface doesn't
filter out offline CPUs, so without this patch if you offline CPU0 and
set an IRQ affinity to 0x3 it vectors the interrupt onto CPU0 even
though it is offline.
Reported-by: Thomas Gleixner <tglx@linutronix.de >
Signed-off-by: James Hogan <james.hogan@imgtec.com >
Cc: Thomas Gleixner <tglx@linutronix.de >
Cc: linux-metag@vger.kernel.org
Cc: stable@vger.kernel.org
2014-02-25 22:35:06 +00:00
James Hogan
5698c50d9d
metag: Internal and external irqchips
...
Meta core internal interrupts (from HWSTATMETA and friends) are vectored
onto the TR1 core trigger for the current thread. This is demultiplexed
in irq-metag.c to individual Linux IRQs for each internal interrupt.
External SoC interrupts (from HWSTATEXT and friends) are vectored onto
the TR2 core trigger for the current thread. This is demultiplexed in
irq-metag-ext.c to individual Linux IRQs for each external SoC interrupt.
The external irqchip has devicetree bindings for configuring the number
of irq banks and the type of masking available.
Signed-off-by: James Hogan <james.hogan@imgtec.com >
Cc: Arnd Bergmann <arnd@arndb.de >
Cc: Grant Likely <grant.likely@secretlab.ca >
Cc: Rob Herring <rob.herring@calxeda.com >
Cc: Rob Landley <rob@landley.net >
Cc: Dom Cobley <popcornmix@gmail.com >
Cc: Simon Arlott <simon@fire.lp0.eu >
Cc: Viresh Kumar <viresh.kumar@linaro.org >
Cc: Maxime Ripard <maxime.ripard@free-electrons.com >
Cc: devicetree-discuss@lists.ozlabs.org
Cc: linux-doc@vger.kernel.org
2013-03-02 20:09:48 +00:00