From: Paul Mackerras <paulus@samba.org>
To: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Cc: linux-kernel@vger.kernel.org, linux-mips@linux-mips.org, akpm@osdl.org
Subject: Re: jiffies_64 vs. jiffies
Date: Fri, 3 Mar 2006 15:06:16 +1100 [thread overview]
Message-ID: <17415.49336.31224.641069@cargo.ozlabs.ibm.com> (raw)
In-Reply-To: <20060301.144442.118975101.nemoto@toshiba-tops.co.jp>
Atsushi Nemoto writes:
> Hi. I noticed that the 'jiffies' variable has 'wall_jiffies + 1'
> value in most of time. I'm using MIPS platform but I think this is
> same for other platforms.
>
> I suppose this is due to gcc does not know that jiffies_64 and jiffies
> share same place.
I can confirm that the same thing happens on powerpc, both 32-bit and
64-bit. The compiler loads up jiffies, jiffies_64 and wall_jiffies
into registers before storing back the incremented value into
jiffies_64 and then updating wall_jiffies.
Thanks for finding that, it explains some other strange things that I
have seen happen.
Paul.
prev parent reply other threads:[~2006-03-03 4:06 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-03-01 5:44 Atsushi Nemoto
2006-03-01 12:05 ` Atsushi Nemoto
2006-03-01 12:52 ` Nick Piggin
2006-03-01 14:57 ` Atsushi Nemoto
2006-03-01 15:00 ` Nick Piggin
2006-03-01 16:13 ` Atsushi Nemoto
2006-03-03 4:06 ` Paul Mackerras [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=17415.49336.31224.641069@cargo.ozlabs.ibm.com \
--to=paulus@samba.org \
--cc=akpm@osdl.org \
--cc=anemo@mba.ocn.ne.jp \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mips@linux-mips.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome