]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: Loongson: Add oprofile support
authorWu Zhangjin <wuzj@lemote.com>
Thu, 2 Jul 2009 15:25:46 +0000 (23:25 +0800)
committerRalf Baechle <ralf@linux-mips.org>
Thu, 17 Sep 2009 18:07:47 +0000 (20:07 +0200)
commit53c37a2bfe84cf2055818ac2413bbb665cffe8d7
treeb85665bc0611c07d26299c20424332cc8899133d
parentc8becf232b64ab449423fadf83c945350c8faff0
MIPS: Loongson: Add oprofile support

This kernel support is needed by the user-space tool:oprofile to profile
linux kernel or applications via loongson2 performance counters. you can
enable this driver via CONFIG_OPROFILE = y or m.

On Loongson2 there are two performance counters, each one can count 16
events respectively. when anyone of the performance counter overflows, an
interrupt will be generated and is routed to the IRQ MIPS_CPU_IRQ_BASE + 6.

Signed-off-by: Yanhua <yanh@lemote.com>
Signed-off-by: Wu Zhangjin <wuzj@lemote.com>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/include/asm/mach-lemote/loongson.h
arch/mips/lemote/lm2e/irq.c
arch/mips/oprofile/Makefile
arch/mips/oprofile/common.c
arch/mips/oprofile/op_model_loongson2.c [new file with mode: 0644]