MIPS: Oprofile: Fixup of loongson2_exit()
authorWu Zhangjin <wuzhangjin@gmail.com>
Thu, 6 May 2010 17:03:49 +0000 (01:03 +0800)
committerRalf Baechle <ralf@linux-mips.org>
Mon, 5 Jul 2010 16:17:31 +0000 (17:17 +0100)
commit1d84267480ce8cf9943b79b70da86ddb3f95e3dd
tree6032d06980f11251b50cb44adb2846baf34d39f5
parent2e93d1ec080e4b21a34869129bda73f24ebb8950
MIPS: Oprofile: Fixup of loongson2_exit()

When exiting from loongson2_exit(), we need to reset the counter
register too, this patch adds a function reset_counters() to do it, by
the way, this function will be shared by Perf.

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