Re: sched_clock() uses are broken

From: Nick Piggin
Date: Sun May 07 2006 - 10:22:23 EST


Russell King wrote:

Also, any comments on update_cpu_clock() and current_sched_time() both
appearing to be buggy, or am I barking up the wrong tree with those?

Can't remember off the top of my head who put those in, sorry.

Aside from the fact that they appear to be fundamentally buggy anyway
because we don't require exact ns intervals from sched_clock() at the
best of times, I think your wrapping fix for them looks correct.

Thanks,
Nick

--
SUSE Labs, Novell Inc.
Send instant messages to your online friends http://au.messenger.yahoo.com -
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/