[PATCH 1/3] show_interrupts: use irq_chip::name if available
Benjamin Herrenschmidt
benh at kernel.crashing.org
Wed Dec 9 19:59:02 EST 2009
On Wed, 2009-12-09 at 08:32 +0100, Peter Korsgaard wrote:
> >>>>> "Peter" == Peter Korsgaard <jacmet at sunsite.dk> writes:
>
> Peter> struct irq_chip::typename is going away (replaced by name). Use name if
> Peter> set instead of typename in show_interrupt to make ease transition.
>
> Comments?
Hi Peter !
There's already a patch in my -next tree from Thomas Gleixner that fixes
that up along with a few others in arch/powerpc.
Cheers,
Ben.
> Peter> Signed-off-by: Peter Korsgaard <jacmet at sunsite.dk>
> Peter> ---
> Peter> arch/powerpc/kernel/irq.c | 3 ++-
> Peter> 1 files changed, 2 insertions(+), 1 deletions(-)
>
> Peter> diff --git a/arch/powerpc/kernel/irq.c b/arch/powerpc/kernel/irq.c
> Peter> index e5d1211..33e1130 100644
> Peter> --- a/arch/powerpc/kernel/irq.c
> Peter> +++ b/arch/powerpc/kernel/irq.c
> Peter> @@ -203,7 +203,8 @@ int show_interrupts(struct seq_file *p, void *v)
> Peter> seq_printf(p, "%10u ", kstat_irqs(i));
> Peter> #endif /* CONFIG_SMP */
> Peter> if (desc->chip)
> Peter> - seq_printf(p, " %s ", desc->chip->typename);
> Peter> + seq_printf(p, " %s ", desc->chip->name ?
> Peter> + desc->chip->name : desc->chip->typename);
> Peter> else
> Peter> seq_puts(p, " None ");
> Peter> seq_printf(p, "%s", (desc->status & IRQ_LEVEL) ? "Level " : "Edge ");
> Peter> --
> Peter> 1.6.5
>
>
More information about the Linuxppc-dev
mailing list