diff options
Diffstat (limited to 'arch/mips')
-rw-r--r-- | arch/mips/oprofile/op_model_loongson2.c | 5 |
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 596fb0817578..deefcee69a69 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) | |||
88 | 88 | ||
89 | static void loongson2_cpu_setup(void *args) | 89 | static void loongson2_cpu_setup(void *args) |
90 | { | 90 | { |
91 | uint64_t perfcount; | 91 | write_c0_perfcnt((reg.reset_counter2 << 32) | reg.reset_counter1); |
92 | |||
93 | perfcount = (reg.reset_counter2 << 32) | reg.reset_counter1; | ||
94 | write_c0_perfcnt(perfcount); | ||
95 | } | 92 | } |
96 | 93 | ||
97 | static void loongson2_cpu_start(void *args) | 94 | static void loongson2_cpu_start(void *args) |