All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Loongson: Oprofile: Enable it when CONFIG_OPROFILE=m
@ 2010-04-26 12:01 Wu Zhangjin
  2010-04-29 18:24 ` Ralf Baechle
  0 siblings, 1 reply; 2+ messages in thread
From: Wu Zhangjin @ 2010-04-26 12:01 UTC (permalink / raw)
  To: ralf; +Cc: linux-mips, Wu Zhangjin

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

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] Loongson: Oprofile: Enable it when CONFIG_OPROFILE=m
  2010-04-26 12:01 [PATCH] Loongson: Oprofile: Enable it when CONFIG_OPROFILE=m Wu Zhangjin
@ 2010-04-29 18:24 ` Ralf Baechle
  0 siblings, 0 replies; 2+ messages in thread
From: Ralf Baechle @ 2010-04-29 18:24 UTC (permalink / raw)
  To: Wu Zhangjin; +Cc: linux-mips

On Mon, Apr 26, 2010 at 08:01:54PM +0800, Wu Zhangjin wrote:

Applied.  Thanks Wu!

  Ralf

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-04-29 18:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-04-26 12:01 [PATCH] Loongson: Oprofile: Enable it when CONFIG_OPROFILE=m Wu Zhangjin
2010-04-29 18:24 ` Ralf Baechle

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.