MIPS: Oprofile: Loongson: Unify macro for setting events
authorWu Zhangjin <wuzhangjin@gmail.com>
Thu, 6 May 2010 17:29:44 +0000 (01:29 +0800)
committerRalf Baechle <ralf@linux-mips.org>
Fri, 21 May 2010 20:31:18 +0000 (21:31 +0100)
commit86e5a5202148736bffed49499a1dc8c1a311d3ab
tree838fcb1c97f5b2e2f8366c9e2d697ef9254b9d45
parent0103d23f44b1e9f8d2e89cc197e21192f6914f24
MIPS: Oprofile: Loongson: Unify macro for setting events

Unified macro for counter0 and counter1 to set the event in the control
register.  This will be needed by Perf.

Signed-off-by: Wu Zhangjin <wuzhangjin@gmail.com>
Cc: linux-mips@linux-mips.org
Patchwork: http://patchwork.linux-mips.org/patch/1200/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/oprofile/op_model_loongson2.c