Re: [PATCH] fix for sched_clock() when using jiffies
From: Andrew Morton
Date: Sat May 09 2009 - 03:07:22 EST
On Sat, 9 May 2009 13:35:37 +0930 Ron <ron@xxxxxxxxxx> 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 ;)
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/