Re: [Patch 5/6] statistics infrastructure

Andrew Morton
2006-05-30T19:15:25Z

On Tue, 30 May 2006 19:17:19 +0200
Martin Peschke <mp3@de.ibm.com> wrote:

> Would I get away with making printk_clock() a timestamp_clock() that
> should be used by anyone exporting nsec_to_timestamp()-formated time
> stamps to user space, including me?
>
> I would then continue to see the use of sched_clock() in printk_clock()
> ... aehm timestamp_clock() as somebody else's problem (or at least
> as a subordinate problem).

Sure, a generic kernel-wide nsec-resolution timestamp_clock() makes sense
to me.

The default implementation can use sched_clock() but arch maintainers
can/should override it (vai attribute-weak) and do somethnig better.