aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWu Zhangjin <wuzhangjin@gmail.com>2010-05-07 01:29:46 +0800
committerRalf Baechle <ralf@linux-mips.org>2010-05-21 21:31:19 +0100
commit6d8c2873e06626c371bdedd5e00b00a60d3fde41 (patch)
tree3bf86ea5b687c67750dbe32bb72673d98d28f4be
parentc838abc511ed710bdc2d93e0d8b5449be953849e (diff)
downloadmrst-s0i3-test-6d8c2873e06626c371bdedd5e00b00a60d3fde41.tar.gz
mrst-s0i3-test-6d8c2873e06626c371bdedd5e00b00a60d3fde41.tar.xz
mrst-s0i3-test-6d8c2873e06626c371bdedd5e00b00a60d3fde41.zip
MIPS: Oprofile: Loongson: Remove unused variable from loongson2_cpu_setup()
Signed-off-by: Wu Zhangjin <wuzhangjin@gmail.com> Cc: linux-mips@linux-mips.org Patchwork: http://patchwork.linux-mips.org/patch/1202/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
-rw-r--r--arch/mips/oprofile/op_model_loongson2.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/arch/mips/oprofile/op_model_loongson2.c b/arch/mips/oprofile/op_model_loongson2.c
index 596fb081757..deefcee69a6 100644
--- a/arch/mips/oprofile/op_model_loongson2.c
+++ b/arch/mips/oprofile/op_model_loongson2.c
@@ -88,10 +88,7 @@ static void loongson2_reg_setup(struct op_counter_config *cfg)
static void loongson2_cpu_setup(void *args)
{
- uint64_t perfcount;
-
- perfcount = (reg.reset_counter2 << 32) | reg.reset_counter1;
- write_c0_perfcnt(perfcount);
+ write_c0_perfcnt((reg.reset_counter2 << 32) | reg.reset_counter1);
}
static void loongson2_cpu_start(void *args)