[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20090509000406.c2022a0b.akpm@linux-foundation.org>
Date: Sat, 9 May 2009 00:04:06 -0700
From: Andrew Morton <akpm@...ux-foundation.org>
To: Ron <ron@...ian.org>
Cc: mingo@...e.hu, a.p.zijlstra@...llo.nl, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] fix for sched_clock() when using jiffies
On Sat, 9 May 2009 13:35:37 +0930 Ron <ron@...ian.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 ;)
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists