Re: time interpolation hooks

Andrew Morton (akpm@digeo.com)
Mon, 19 May 2003 11:57:09 -0700


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?

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/