linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
To: Zhang Wei <wei.zhang@freescale.com>
Cc: linuxppc-dev@ozlabs.org, paulus@samba.org, r54964@freescale.com
Subject: Re: [PATCH] Add irq host and hwirq pair fields to output when showing interrupts.
Date: Tue, 13 Mar 2007 08:14:52 +0100	[thread overview]
Message-ID: <1173770092.24454.69.camel@localhost.localdomain> (raw)
In-Reply-To: <1173755968459-git-send-email-wei.zhang@freescale.com>

On Tue, 2007-03-13 at 11:19 +0800, Zhang Wei wrote:
> Signed-off-by: Zhang Wei <wei.zhang@freescale.com>
> ---
>  arch/powerpc/kernel/irq.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/arch/powerpc/kernel/irq.c b/arch/powerpc/kernel/irq.c
> index 919fbf5..2a30ffd 100644
> --- a/arch/powerpc/kernel/irq.c
> +++ b/arch/powerpc/kernel/irq.c
> @@ -194,7 +194,7 @@ #else
>  		seq_printf(p, "%10u ", kstat_irqs(i));
>  #endif /* CONFIG_SMP */
>  		if (desc->chip)
> -			seq_printf(p, " %s ", desc->chip->typename);
> +			seq_printf(p, " (%3d) @%s ", (irq_map[i].host->revmap_type == IRQ_HOST_MAP_LEGACY) ? i : virq_to_hw(i), desc->chip->typename);
>  		else
>  			seq_puts(p, "  None      ");
>  		seq_printf(p, "%s", (desc->status & IRQ_LEVEL) ? "Level " : "Edge  ");

Well, first, we shouldn't modify the output of /proc/interrupts as this
will likely break all sort of userland tools displaying it (well, I
think).

Now, regarding the patch itself, printing the hw irq is not that useful
without some indication of which host it belongs to. Best is to add a
name() or something like that to the host ops.

Ben.

  reply	other threads:[~2007-03-13  7:15 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-13  3:19 [PATCH] Add irq host and hwirq pair fields to output when showing interrupts Zhang Wei
2007-03-13  7:14 ` Benjamin Herrenschmidt [this message]
2007-03-13  9:32   ` [PATCH] Add irq host and hwirq pair fields to output whenshowing interrupts Zhang Wei-r63237
2007-03-13 13:52     ` Benjamin Herrenschmidt
2007-03-15  9:53       ` [PATCH] Add irq host and hwirq pair fields to outputwhenshowing interrupts Zhang Wei-r63237
2007-03-15 10:22         ` Benjamin Herrenschmidt

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1173770092.24454.69.camel@localhost.localdomain \
    --to=benh@kernel.crashing.org \
    --cc=linuxppc-dev@ozlabs.org \
    --cc=paulus@samba.org \
    --cc=r54964@freescale.com \
    --cc=wei.zhang@freescale.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).