]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: Loongson: Oprofile: add a new do_perfcnt_IRQ()
authorWu Zhangjin <wuzhangjin@gmail.com>
Sat, 24 Jul 2010 01:22:14 +0000 (09:22 +0800)
committerRalf Baechle <ralf@linux-mips.org>
Thu, 5 Aug 2010 12:26:24 +0000 (13:26 +0100)
commit1a7a87fd0f2c014b2f2d1386a1a3a7dcd1f4d29d
tree16813f3d063da6c8d8fdbe47b574b4067d048579
parent31c62944c02179192fcca95a88eb2e073c65137e
MIPS: Loongson: Oprofile: add a new do_perfcnt_IRQ()

On FuLoong-2F IP6 is shared by the performance counter overflow interrupt
and the Bonito northbridge interrupt.  To reduce overhead only call
do_IRQ() when oprofile is enabled to reduce overhead.

This patch adds an inline function do_perfcnt_IRQ() to hide the #if's ,
which can be shared by the other Loongson machines, i.e. gdium.

Signed-off-by: Wu Zhangjin <wuzhangjin@gmail.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/1492/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/include/asm/mach-loongson/loongson.h
arch/mips/loongson/fuloong-2e/irq.c
arch/mips/loongson/lemote-2f/irq.c