From: Greg Ungerer <gerg@snapgear.com>
To: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: Greg Ungerer <gerg@uclinux.org>,
uClinux list <uclinux-dev@uclinux.org>,
Linux/m68k <linux-m68k@lists.linux-m68k.org>,
Thomas Gleixner <tglx@linutronix.de>
Subject: Re: [PATCH] m68knommu: Use generic show_interrupts()
Date: Sun, 1 May 2011 09:00:21 +1000 [thread overview]
Message-ID: <4DBC9485.1060601@snapgear.com> (raw)
In-Reply-To: <alpine.DEB.2.00.1104302312320.24942@ayla.of.borg>
Hi Geert,
On 01/05/11 07:15, Geert Uytterhoeven wrote:
> Apart from whitespace differences, /proc/interrupts doesn't change by
> enabling GENERIC_IRQ_SHOW.
>
> Signed-off-by: Geert Uytterhoeven<geert@linux-m68k.org>
Works fine on m68knommu, so:
Acked-by: Greg Ungerer <gerg@uclinux.org>
Do you want me to push this via the m68knommu git tree?
Regards
Greg
> ---
> _not_ tested on m68knommu.
> Observations done on work-in-progress Atari genirq.
>
> arch/m68k/Kconfig | 1 +
> arch/m68k/kernel/irq.c | 28 ----------------------------
> 2 files changed, 1 insertions(+), 28 deletions(-)
>
> diff --git a/arch/m68k/Kconfig b/arch/m68k/Kconfig
> index dee2796..c23af0a 100644
> --- a/arch/m68k/Kconfig
> +++ b/arch/m68k/Kconfig
> @@ -5,6 +5,7 @@ config M68K
> select HAVE_AOUT if MMU
> select GENERIC_ATOMIC64 if MMU
> select HAVE_GENERIC_HARDIRQS if !MMU
> + select GENERIC_IRQ_SHOW if !MMU
>
> config RWSEM_GENERIC_SPINLOCK
> bool
> diff --git a/arch/m68k/kernel/irq.c b/arch/m68k/kernel/irq.c
> index 15dbc3e..544b871 100644
> --- a/arch/m68k/kernel/irq.c
> +++ b/arch/m68k/kernel/irq.c
> @@ -28,31 +28,3 @@ asmlinkage void do_IRQ(int irq, struct pt_regs *regs)
>
> set_irq_regs(oldregs);
> }
> -
> -int show_interrupts(struct seq_file *p, void *v)
> -{
> - struct irqaction *ap;
> - int irq = *((loff_t *) v);
> -
> - if (irq == 0)
> - seq_puts(p, " CPU0\n");
> -
> - if (irq< NR_IRQS) {
> - struct irq_desc *desc = irq_to_desc(irq);
> -
> - ap = desc->action;
> - if (ap) {
> - seq_printf(p, "%3d: ", irq);
> - seq_printf(p, "%10u ", kstat_irqs(irq));
> - seq_printf(p, "%14s ", irq_desc_get_chip(desc)->name);
> -
> - seq_printf(p, "%s", ap->name);
> - for (ap = ap->next; ap; ap = ap->next)
> - seq_printf(p, ", %s", ap->name);
> - seq_putc(p, '\n');
> - }
> - }
> -
> - return 0;
> -}
> -
--
------------------------------------------------------------------------
Greg Ungerer -- Principal Engineer EMAIL: gerg@snapgear.com
SnapGear Group, McAfee PHONE: +61 7 3435 2888
8 Gardner Close FAX: +61 7 3217 5323
Milton, QLD, 4064, Australia WEB: http://www.SnapGear.com
next prev parent reply other threads:[~2011-04-30 23:00 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-30 21:15 [PATCH] m68knommu: Use generic show_interrupts() Geert Uytterhoeven
2011-04-30 23:00 ` Greg Ungerer [this message]
2011-05-01 8:08 ` Geert Uytterhoeven
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=4DBC9485.1060601@snapgear.com \
--to=gerg@snapgear.com \
--cc=geert@linux-m68k.org \
--cc=gerg@uclinux.org \
--cc=linux-m68k@lists.linux-m68k.org \
--cc=tglx@linutronix.de \
--cc=uclinux-dev@uclinux.org \
/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