From: Thomas Gleixner <tglx@linutronix.de>
To: LKML <linux-kernel@vger.kernel.org>
Cc: Chen Liqin <liqin.chen@sunplusct.com>
Subject: [patch 4/4] score: Use generic show_interrupts()
Date: Fri, 25 Mar 2011 14:16:56 -0000 [thread overview]
Message-ID: <20110325141647.354463173@linutronix.de> (raw)
In-Reply-To: <20110325141528.825456671@linutronix.de>
[-- Attachment #1: score-use-show.patch --]
[-- Type: text/plain, Size: 1866 bytes --]
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Chen Liqin <liqin.chen@sunplusct.com>
---
arch/score/Kconfig | 1 +
arch/score/kernel/irq.c | 39 ---------------------------------------
2 files changed, 1 insertion(+), 39 deletions(-)
Index: linux-2.6-tip/arch/score/Kconfig
===================================================================
--- linux-2.6-tip.orig/arch/score/Kconfig
+++ linux-2.6-tip/arch/score/Kconfig
@@ -4,6 +4,7 @@ config SCORE
def_bool y
select HAVE_GENERIC_HARDIRQS
select GENERIC_HARDIRQS_NO_DEPRECATED
+ select GENERIC_IRQ_SHOW
choice
prompt "System type"
Index: linux-2.6-tip/arch/score/kernel/irq.c
===================================================================
--- linux-2.6-tip.orig/arch/score/kernel/irq.c
+++ linux-2.6-tip/arch/score/kernel/irq.c
@@ -109,42 +109,3 @@ void __init init_IRQ(void)
: : "r" (EXCEPTION_VECTOR_BASE_ADDR | \
VECTOR_ADDRESS_OFFSET_MODE16));
}
-
-/*
- * Generic, controller-independent functions:
- */
-int show_interrupts(struct seq_file *p, void *v)
-{
- int i = *(loff_t *)v, cpu;
- struct irqaction *action;
- unsigned long flags;
-
- if (i == 0) {
- seq_puts(p, " ");
- for_each_online_cpu(cpu)
- seq_printf(p, "CPU%d ", cpu);
- seq_putc(p, '\n');
- }
-
- if (i < NR_IRQS) {
- struct irq_desc *desc = irq_to_desc(i);
-
- raw_spin_lock_irqsave(&desc->lock, flags);
- action = desc->action;
- if (!action)
- goto unlock;
-
- seq_printf(p, "%3d: ", i);
- seq_printf(p, "%10u ", kstat_irqs(i));
- seq_printf(p, " %8s", irq_desc_get_chip(desc)->name ? : "-");
- seq_printf(p, " %s", action->name);
- for (action = action->next; action; action = action->next)
- seq_printf(p, ", %s", action->name);
-
- seq_putc(p, '\n');
-unlock:
- raw_spin_unlock_irqrestore(&desc->lock, flags);
- }
-
- return 0;
-}
next prev parent reply other threads:[~2011-03-25 14:17 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-25 14:16 [patch 0/4] score: Final irq bits for .39 Thomas Gleixner
2011-03-25 14:16 ` [patch 1/4] score: Convert irq_chip to new functions Thomas Gleixner
2011-03-25 14:16 ` [patch 3/4] score: Convert to new irq function names Thomas Gleixner
2011-03-25 14:16 ` [patch 2/4] score: Select GENERIC_HARDIRQS_NO_DEPRECATED Thomas Gleixner
2011-03-25 14:16 ` Thomas Gleixner [this message]
2011-03-28 7:11 ` [GIT PULL] score arch fixes for 2.6.39 liqin.chen
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=20110325141647.354463173@linutronix.de \
--to=tglx@linutronix.de \
--cc=linux-kernel@vger.kernel.org \
--cc=liqin.chen@sunplusct.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
all inboxes | Powered by JetHome®