[RFC PATCH] ARM: sched_clock: allow sched_clock to be selected at runtime

Russell King - ARM Linux linux at arm.linux.org.uk
Wed Aug 10 04:52:10 EDT 2011


On Wed, Aug 10, 2011 at 09:28:02AM +0100, Marc Zyngier wrote:
> I'd be all for that, and I've waited a long time (April?) before posting
> that patch, hoping that a consensus would emerge on the clocksourse
> patches.
> 
> So far, nothing.
> 
> We need a solution to this problem. I really don't care which patch gets
> merged, so if someone thinks they can get the clocksource patches
> further, then by all mean, please do it.

I'll say it again, because you seem to have missed it.  I don't think
intimately tying sched_clock and clocksource stuff together is a good
idea, especially as there's platforms where sched_clock is higher
resolution than the clocksource.  Plus, if it really is the case that
any clocksource can be used for sched_clock, then we wouldn't have
sched_clock at all.

So no, I don't think tying the two together is a good idea.  Especially
when it means that some platforms will end up with a lower resolution
and/or slower implementation.



More information about the linux-arm-kernel mailing list