From: Thomas Gleixner <tglx@linutronix.de>
To: Andrew Morton <akpm@osdl.org>
Cc: Martin Peschke <mp3@de.ibm.com>, linux-kernel@vger.kernel.org
Subject: Re: [Patch 3/6] statistics infrastructure - prerequisite: timestamp
Date: Thu, 25 May 2006 00:45:15 +0200 [thread overview]
Message-ID: <1148510715.5239.92.camel@localhost.localdomain> (raw)
In-Reply-To: <20060524150830.3864ae90.akpm@osdl.org>
On Wed, 2006-05-24 at 15:08 -0700, Andrew Morton wrote:
> do_div() is actually defined in terms of u64, not unsigned long long.
> Although afaict this will all work OK and all the usual type promotions
> will dtrt.
>
> Which begs the question: how _does_ the kernel represent nanoseconds? The
> time-management code is a bit undecided (search for long long in
> posix-cpu-timers.c, and for u64 in hrtimers.c). All a bit confused.
posix-cpu-timers.c needs some caring hand !
During the ktimers/hrtimers discussion we agreed on u64 resp. ktime_t to
hold the kernel internal values.
ktime_t is the preferred way as it is optimized for 32/64 bit archs and
all the conversion functions are available out of the box.
tglx
next prev parent reply other threads:[~2006-05-24 22:44 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-05-24 12:31 [Patch 3/6] statistics infrastructure - prerequisite: timestamp Martin Peschke
2006-05-24 22:08 ` Andrew Morton
2006-05-24 22:45 ` Thomas Gleixner [this message]
-- strict thread matches above, loose matches on Subject: below --
2006-05-19 16:11 Martin Peschke
2006-05-23 13:06 ` Balbir Singh
2006-05-23 13:33 ` Martin Peschke
2006-05-24 21:16 ` Tim Bird
2006-06-01 8:40 ` Martin Peschke
2006-06-01 8:50 ` Andrew Morton
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=1148510715.5239.92.camel@localhost.localdomain \
--to=tglx@linutronix.de \
--cc=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mp3@de.ibm.com \
/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