Messages in this thread | | | Date | Tue, 30 May 2006 12:19:20 -0700 | From | Andrew Morton <> | Subject | Re: [Patch 5/6] statistics infrastructure |
| |
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.
- 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/
| |