linux-mips
[Top] [All Lists]

[PATCH 3/5] Oprofile: Loongson: Remove unneeded variable from loongson2_

To: Ralf Baechle <ralf@linux-mips.org>
Subject: [PATCH 3/5] Oprofile: Loongson: Remove unneeded variable from loongson2_cpu_setup()
From: Wu Zhangjin <wuzhangjin@gmail.com>
Date: Fri, 7 May 2010 01:29:46 +0800
Cc: linux-mips@linux-mips.org, Wu Zhangjin <wuzhangjin@gmail.com>
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:date :message-id:x-mailer:in-reply-to:references:in-reply-to:references; bh=iOziV7NIwmNfj91mLxOeWSxs6T6gvSnHuyo4LNVXzXk=; b=dXBqlXuzveplVWlhKba4ouv/UA0j2dqQdNif/UNywjczutJPcXbi5Ba05duQamXtbH vLzKeKHpDk6YJjgycGZPDb9U8FbRWMsvAAKqcDBty8jkXw9eiEXxt25iay3bfuicDQOs 7/eGQgYXyOKLbNIjCvb+ufjnJdDUEDcPomfLU=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; b=fSlbN2xFAacfPuWQ/FAzpGTqP1jEesyiLwaK28YNI6VykuBXvewvMNd82F5JBIpYPa YRmDcv8a6ERg41MS844f7SA6PbHw73nrQ9ITOC+qjP4+Iq471On0cvERlIMZWa/fnuXA 8cnpdkWXnxqE1JMxh9KOBmzDsUA2ix9KYR7nA=
In-reply-to: <cover.1273165681.git.wuzhangjin@gmail.com>
In-reply-to: <cover.1273166351.git.wuzhangjin@gmail.com>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <cover.1273165681.git.wuzhangjin@gmail.com>
References: <cover.1273166351.git.wuzhangjin@gmail.com>
Sender: linux-mips-bounce@linux-mips.org
From: Wu Zhangjin <wuzhangjin@gmail.com>

Signed-off-by: Wu Zhangjin <wuzhangjin@gmail.com>
---
 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 e2696d9..a03894e 100644
--- a/arch/mips/oprofile/op_model_loongson2.c
+++ b/arch/mips/oprofile/op_model_loongson2.c
@@ -94,10 +94,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)
-- 
1.7.0


<Prev in Thread] Current Thread [Next in Thread>