From: Wu Zhangjin <wuzhangjin@xxxxxxxxx> 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@xxxxxxxxx> --- 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