LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* Question on timekeeping subsystem
@ 2008-02-13 14:02 Francis Moreau
  2008-02-14  1:37 ` Roman Zippel
  0 siblings, 1 reply; 3+ messages in thread
From: Francis Moreau @ 2008-02-13 14:02 UTC (permalink / raw)
  To: linux-kernel; +Cc: johnstul

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Question on timekeeping subsystem
  2008-02-13 14:02 Question on timekeeping subsystem Francis Moreau
@ 2008-02-14  1:37 ` Roman Zippel
  2008-02-14 11:37   ` Francis Moreau
  0 siblings, 1 reply; 3+ messages in thread
From: Roman Zippel @ 2008-02-14  1:37 UTC (permalink / raw)
  To: Francis Moreau; +Cc: linux-kernel, johnstul

Hi,

On Wednesday 13. February 2008, Francis Moreau wrote:

> 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.

These mails should help to understand, what this code does:

http://lkml.org/lkml/2006/3/4/61
http://lkml.org/lkml/2006/4/3/205

bye, Roman

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Question on timekeeping subsystem
  2008-02-14  1:37 ` Roman Zippel
@ 2008-02-14 11:37   ` Francis Moreau
  0 siblings, 0 replies; 3+ messages in thread
From: Francis Moreau @ 2008-02-14 11:37 UTC (permalink / raw)
  To: Roman Zippel; +Cc: linux-kernel

Hello Roman,

On Thu, Feb 14, 2008 at 2:37 AM, Roman Zippel <zippel@linux-m68k.org> wrote:
>
>  These mails should help to understand, what this code does:
>
>  http://lkml.org/lkml/2006/3/4/61
>  http://lkml.org/lkml/2006/4/3/205
>

Indeed !

They look interesting after a quick look but I haven't time yet to
read them carefully.

Thanks
-- 
Francis

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-02-14 11:38 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-02-13 14:02 Question on timekeeping subsystem Francis Moreau
2008-02-14  1:37 ` Roman Zippel
2008-02-14 11:37   ` Francis Moreau

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).