Re: sched_clock() uses are broken

Nicolas Pitre
2006-05-02T19:23:04Z

On Tue, 2 May 2006, Russell King wrote:

> On Tue, May 02, 2006 at 03:05:22PM -0400, Nicolas Pitre wrote:
> > If we're discussing the addition of a sched_clock_diff(), why whouldn't
> > shed_clock() return anything it wants in that context? It could be
> > redefined to have a return value meaningful only to shed_clock_diff()?
>
> If we're talking about doing that, we need to replace sched_clock()
> to ensure that we all users are aware that it has changed.
>
> I did think about that for my original fix proposal, but stepped back
> because that's a bigger change - and is something for post-2.6.17.
> The smallest fix (suitable for -rc kernels) is as I detailed.

Oh agreed.

Nicolas