mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-18 03:23:53 -04:00
powerpc/xive: Simplify the dump of XIVE interrupts under xmon
Move the xmon routine under XIVE subsystem and rework the loop on the interrupts taking into account the xive_irq_domain to filter out IPIs. Signed-off-by: Cédric Le Goater <clg@kaod.org> Reviewed-by: Greg Kurz <groug@kaod.org> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/20210331144514.892250-7-clg@kaod.org
This commit is contained in:
committed by
Michael Ellerman
parent
a74ce5926b
commit
6bf66eb8f4
@@ -289,6 +289,20 @@ int xmon_xive_get_irq_config(u32 hw_irq, struct irq_data *d)
|
||||
return 0;
|
||||
}
|
||||
|
||||
void xmon_xive_get_irq_all(void)
|
||||
{
|
||||
unsigned int i;
|
||||
struct irq_desc *desc;
|
||||
|
||||
for_each_irq_desc(i, desc) {
|
||||
struct irq_data *d = irq_desc_get_irq_data(desc);
|
||||
unsigned int hwirq = (unsigned int)irqd_to_hwirq(d);
|
||||
|
||||
if (d->domain == xive_irq_domain)
|
||||
xmon_xive_get_irq_config(hwirq, d);
|
||||
}
|
||||
}
|
||||
|
||||
#endif /* CONFIG_XMON */
|
||||
|
||||
static unsigned int xive_get_irq(void)
|
||||
|
||||
Reference in New Issue
Block a user