Re: [PATCH] - sched_clock() broken for ia64 SN platform

From: john stultz <johnstul_at_us.ibm.com>
Date: 2003-11-21 08:58:34
On Thu, 2003-11-20 at 13:27, David Mosberger wrote:
> >>>>> On Thu, 20 Nov 2003 12:58:20 -0800, "John Hawkes" <hawkes@sgi.com> said:
> 
>   John> I doubt this double-count would ever be accepted by the wider
>   John> Linux Community, as it bloats mainline arch-independent code,
>   John> just to fix a problem with a handful of drifty platforms.
> 
> That's not an argument: the "bloat" can be trivially hidden for
> non-drifty architectures with an inline routine or macro.  I for one
> would be perfectly happy to pay an extra word in the ia64-version of
> task_struct if that would yield a generic and scalable solution to the
> problem.  The problem right now is that the generic kernel code is
> structured in a way that prevents this.

I too was confused why per-cpu start and stop times were not just used
for this high-res accounting. I'm not sure I can look into it now, but
I'd be interested to hear why we'd compare timestamps across cpus
(rather then just use time deltas calculated on a single cpu).

Oh, and that last thought, keep it around for when 2.7 opens ;)

-john

-
To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Received on Thu Nov 20 17:06:56 2003

This archive was generated by hypermail 2.1.8 : 2005-08-02 09:20:20 EST