mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-17 20:29:24 +00:00
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>
This commit is contained in:
parent
9dd1474677
commit
922010ff7b
1 changed files with 1 additions and 1 deletions
|
@ -79,7 +79,7 @@ void mach_irq_dispatch(unsigned int pending)
|
||||||
if (pending & CAUSEF_IP7)
|
if (pending & CAUSEF_IP7)
|
||||||
do_IRQ(LOONGSON_TIMER_IRQ);
|
do_IRQ(LOONGSON_TIMER_IRQ);
|
||||||
else if (pending & CAUSEF_IP6) { /* North Bridge, Perf counter */
|
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);
|
do_IRQ(LOONGSON2_PERFCNT_IRQ);
|
||||||
#endif
|
#endif
|
||||||
bonito_irqdispatch();
|
bonito_irqdispatch();
|
||||||
|
|
Loading…
Add table
Reference in a new issue