LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
From: "Francis Moreau" <francis.moro@gmail.com>
To: linux-kernel@vger.kernel.org
Cc: johnstul@us.ibm.com
Subject: Question on timekeeping subsystem
Date: Wed, 13 Feb 2008 15:02:08 +0100 [thread overview]
Message-ID: <38b2ab8a0802130602r7d8fc470i7896e406d0451ec7@mail.gmail.com> (raw)
Hello,
I looked at this subsystem, trying to understand how this works on Linux
but call me a dumb xxx but I think I really miss something.
First I tried to find some documentation on the current implementation
but haven't found any thing really usefull. Specially there's nothing about
it in Documentation/ directory. Please correct me if I'm already wrong.
Actually I read the implementation of update_wall_time() and I really fail
to understand how it works. This is probably because I don't know
what "xtime_nsec" and "error" fields in clocksource struct are for.
These fields are not documented anywhere in the source code so it
should be obvious but unfortunately not for me.
Another example almost the first thing done by this function is:
clock->xtime_nsec += (s64)xtime.tv_nsec << clock->shift;
What's the hell this ?
I know I'm stupid but please enlight me ;)
Thanks
--
Francis
next reply other threads:[~2008-02-13 14:02 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-13 14:02 Francis Moreau [this message]
2008-02-14 1:37 ` Roman Zippel
2008-02-14 11:37 ` Francis Moreau
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=38b2ab8a0802130602r7d8fc470i7896e406d0451ec7@mail.gmail.com \
--to=francis.moro@gmail.com \
--cc=johnstul@us.ibm.com \
--cc=linux-kernel@vger.kernel.org \
--subject='Re: Question on timekeeping subsystem' \
/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
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).