lkml.org 
[lkml]   [2003]   [May]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: time interpolation hooks
David Mosberger <davidm@napali.hpl.hp.com> wrote:
>
> Andrew, I assume it's OK with you if I update the ia64 code to the
> proposed interface and then send you an updated patch?

Sure. It's be good to see an ia32 implementation which can be beaten on.
Maybe John can look into that?

From an implementation point of view, I wonder if all platforms will need
the indirection?

If not then it would be better to just do

update_wall_time_hook(sys_tz.tz_minuteswest * 60 * NSEC_PER_SEC);

in kernel/time.c and let the architecture decide whether it wants to add
the extra overwriteable hooks.

So include/asm/time-interpolation.h has:

#include <asm-generic/time-interpolation.h>

and asm-generic/time-interpolation.h has:

struct time_interpolator {
...
}

static inline void update_wall_time_hook(unsigne long nsec)
{
time_interpolator.update_wall_time(nsec);
}

if you get my drift.


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:35    [W:0.292 / U:0.608 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site