diff options
author | Wu Zhangjin <wuzhangjin@gmail.com> | 2010-04-26 14:01:54 +0200 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2010-04-30 21:52:54 +0200 |
commit | 922010ff7b75737e6dc361f8eae9c2784ac1872d (patch) | |
tree | 800fb92ec4b1a6a0a02544cd2c67a77a795c215c /arch/mips/loongson | |
parent | STAGING: octeon-ethernet: Use proper phy addresses for Movidis hardware. (diff) | |
download | linux-922010ff7b75737e6dc361f8eae9c2784ac1872d.tar.xz linux-922010ff7b75737e6dc361f8eae9c2784ac1872d.zip |
MIPS: oprofile: Fix breakage when CONFIG_OPROFILE=m
When the oprofile is compiled as a module do_IRQ() is not called in
arch/mips/loongson/lemote-2f/irq.c due to a wrong #ifdef there.
Signed-off-by: Wu Zhangjin <wuzhangjin@gmail.com>
Cc: linux-mips@linux-mips.org
Patchwork: http://patchwork.linux-mips.org/patch/1143/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/loongson')
-rw-r--r-- | 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 882dfcd42c00..1d8b4d28a058 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(); |