mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-05 09:46:43 +07:00
7f1b1244e1
This adds support for disabling threading on a per-IRQ basis via the IRQ status instead of the IRQ flow, which is necessary for interrupts that don't follow the natural IRQ flow channels, such as those that are virtually created. The new APIs added are simply: irq_set_thread() irq_set_nothread() which follow the rest of the IRQ status routines. Chained handlers also have IRQ_NOTHREAD set on them automatically, making the lack of threading explicit rather than implicit. Subsequently, the nothread flag can be viewed through the standard genirq debugging facilities. [ tglx: Fixed cleanup fallout ] Signed-off-by: Paul Mundt <lethal@linux-sh.org> Link: http://lkml.kernel.org/r/%3C20110406210135.GF18426%40linux-sh.org%3E Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
46 lines
1.1 KiB
C
46 lines
1.1 KiB
C
/*
|
|
* Debugging printout:
|
|
*/
|
|
|
|
#include <linux/kallsyms.h>
|
|
|
|
#define P(f) if (desc->status_use_accessors & f) printk("%14s set\n", #f)
|
|
#define PS(f) if (desc->istate & f) printk("%14s set\n", #f)
|
|
/* FIXME */
|
|
#define PD(f) do { } while (0)
|
|
|
|
static inline void print_irq_desc(unsigned int irq, struct irq_desc *desc)
|
|
{
|
|
printk("irq %d, desc: %p, depth: %d, count: %d, unhandled: %d\n",
|
|
irq, desc, desc->depth, desc->irq_count, desc->irqs_unhandled);
|
|
printk("->handle_irq(): %p, ", desc->handle_irq);
|
|
print_symbol("%s\n", (unsigned long)desc->handle_irq);
|
|
printk("->irq_data.chip(): %p, ", desc->irq_data.chip);
|
|
print_symbol("%s\n", (unsigned long)desc->irq_data.chip);
|
|
printk("->action(): %p\n", desc->action);
|
|
if (desc->action) {
|
|
printk("->action->handler(): %p, ", desc->action->handler);
|
|
print_symbol("%s\n", (unsigned long)desc->action->handler);
|
|
}
|
|
|
|
P(IRQ_LEVEL);
|
|
P(IRQ_PER_CPU);
|
|
P(IRQ_NOPROBE);
|
|
P(IRQ_NOREQUEST);
|
|
P(IRQ_NOTHREAD);
|
|
P(IRQ_NOAUTOEN);
|
|
|
|
PS(IRQS_AUTODETECT);
|
|
PS(IRQS_REPLAY);
|
|
PS(IRQS_WAITING);
|
|
PS(IRQS_PENDING);
|
|
|
|
PD(IRQS_INPROGRESS);
|
|
PD(IRQS_DISABLED);
|
|
PD(IRQS_MASKED);
|
|
}
|
|
|
|
#undef P
|
|
#undef PS
|
|
#undef PD
|