linux-mips
[Top] [All Lists]

Re: jiffies_64 vs. jiffies

To: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Subject: Re: jiffies_64 vs. jiffies
From: Nick Piggin <nickpiggin@yahoo.com.au>
Date: Wed, 01 Mar 2006 23:52:37 +1100
Cc: linux-kernel@vger.kernel.org, linux-mips@linux-mips.org
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com.au; h=Received:Message-ID:Date:From:User-Agent:X-Accept-Language:MIME-Version:To:CC:Subject:References:In-Reply-To:Content-Type:Content-Transfer-Encoding; b=Vck0wRFnynPksIlhpHe0MFKs/xq7qDi0cE9Km5oWL70gXP7FHZBc4mK9G0N34I3olj9P2qljwgDS3GTqayRbt8zwE7vLySqPA6uBAyE7PXiX3+rZZw7EYwei+GA+zItMkVp+iOmYE2Q4blfipvCQwsWlIoow0ADLdkM/wcOEHtg= ;
In-reply-to: <20060301.210541.30439818.nemoto@toshiba-tops.co.jp>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <20060301.144442.118975101.nemoto@toshiba-tops.co.jp> <20060301.210541.30439818.nemoto@toshiba-tops.co.jp>
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20051007 Debian/1.7.12-1
Atsushi Nemoto wrote:

@@ -924,8 +924,7 @@ static inline void update_times(void)
void do_timer(struct pt_regs *regs)
 {
-       jiffies_64++;
-       update_times();
+       update_times(++jiffies_64);
        softlockup_tick(regs);
 }

jiffies_64 is not volatile so you should not have to obfuscate
the code like this.

--
Send instant messages to your online friends http://au.messenger.yahoo.com
<Prev in Thread] Current Thread [Next in Thread>