| To: | ralf@linux-mips.org |
|---|---|
| Subject: | [PATCH] Loongson: Oprofile: Enable it when CONFIG_OPROFILE=m |
| From: | Wu Zhangjin <wuzhangjin@gmail.com> |
| Date: | Mon, 26 Apr 2010 20:01:54 +0800 |
| Cc: | linux-mips@linux-mips.org, Wu Zhangjin <wuzhangjin@gmail.com> |
| Dkim-signature: | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:date :message-id:x-mailer; bh=Nl39hrGq5vgdjyZdFaMehAWaos7T0sRl3ua+mi67nTo=; b=j7ZxkMyvmJgsnmjTQWqzRbJVC4YS24tIbDSVSbvpZOnWx5+PpxMovHXFClXsSiRq9k 2vbsMR1h6Z7oEUiJe1hEVR3UN4zIDLmOfwU+xgT8dRu6wsmR2NeDEgl4YhGfqaXIAtvK jD1cB1S2w8gfXbAgv3NozDbifEcSvtu74GzDg= |
| Domainkey-signature: | a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer; b=heos3bZDEmt1eHSJVslWPKFDz0S/3owRr6xPNs3vdplqoVHBrZLi1PyoTf6ARdDeFy F2zCkmwTjEOgXXa4FjnyBiQ5gIpFz1KPMtKTHrMlGsqBUb8A5n4EfO5gAsb7JRpVZKTF hhn+IdVN/uC7eYT4PE9dGFcViwYw/6j7VrCDU= |
| Original-recipient: | rfc822;linux-mips@linux-mips.org |
| Sender: | linux-mips-bounce@linux-mips.org |
From: Wu Zhangjin <wuzhangjin@gmail.com>
When the oprofile is compiled as a module, the do_IRQ() is not called in
arch/mips/loongson/lemote-2f/irq.c for the wrong #ifdef there.
This patch fixes it via calling do_IRQ() whenever oprofile is compiled
as a module(CONFIG_OPROFILE_MODULE is defined) or compiled into the
kernel(CONFIG_OPROFILE is defined).
Signed-off-by: Wu Zhangjin <wuzhangjin@gmail.com>
---
arch/mips/loongson/lemote-2f/irq.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/arch/mips/loongson/lemote-2f/irq.c
b/arch/mips/loongson/lemote-2f/irq.c
index 882dfcd..1d8b4d2 100644
--- a/arch/mips/loongson/lemote-2f/irq.c
+++ b/arch/mips/loongson/lemote-2f/irq.c
@@ -79,7 +79,7 @@ void mach_irq_dispatch(unsigned int pending)
if (pending & CAUSEF_IP7)
do_IRQ(LOONGSON_TIMER_IRQ);
else if (pending & CAUSEF_IP6) { /* North Bridge, Perf counter */
-#ifdef CONFIG_OPROFILE
+#if defined(CONFIG_OPROFILE) || defined(CONFIG_OPROFILE_MODULE)
do_IRQ(LOONGSON2_PERFCNT_IRQ);
#endif
bonito_irqdispatch();
--
1.7.0
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: Ask help:why my 64-bit ELF file could not run at the 64-bit mips cpu, Dominic |
|---|---|
| Next by Date: | Re: [PATCH] MIPS: Calculate proper ebase value for 64-bit kernels, Wu Zhangjin |
| Previous by Thread: | [PATCH] die() does not call die notifier chain, Yury Polyanskiy |
| Next by Thread: | Re: [PATCH] Loongson: Oprofile: Enable it when CONFIG_OPROFILE=m, Ralf Baechle |
| Indexes: | [Date] [Thread] [Top] [All Lists] |