Skip to content

Commit

Permalink
MIPS: Oprofile: Loongson: Remove unused variable from loongson2_cpu_s…
Browse files Browse the repository at this point in the history
…etup()

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>
  • Loading branch information
Wu Zhangjin authored and Ralf Baechle committed May 21, 2010
1 parent c838abc commit 6d8c287
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions arch/mips/oprofile/op_model_loongson2.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 6d8c287

Please sign in to comment.