Re: [PATCH] fix for sched_clock() when using jiffies

Andrew Morton
2009-05-09T07:07:19Z

On Sat, 9 May 2009 13:35:37 +0930 Ron <ron@debian.org> wrote:

> All 'real'
> sched_clock implementations (empirically) count from 0, except this
> default one.

Well you live and learn.

Yup, we should make the toy sched_clock() match the fancy ones.

otoh, sched_clock() should do the INTITAL_JIFFIES offsetting as well,
because there are probably callers of sched_clock() who are buggy in
the presence of sched_clock()-return-value wraparound.

otooh, sched_clock() wraparound takes nearly 500 years so we can
afford to wait until linux-2.7.x to fix this.

I'll go off and find your original patch. This was all a difficult way of
writing the changelog ;)