Re: [PATCH] clocksource: document some basic concepts

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Nicolas Pitre
Date: Monday, November 15, 2010 - 1:06 pm

On Mon, 15 Nov 2010, Peter Zijlstra wrote:


This is not necessarily the case.  Some implementations require a 
scaling factor too, making the number of remaining bits smaller than 64.  
See arch/arm/mach-pxa/time.c:sched_clock() for example, which has a 
maximum range of 208 days.  Of course, in practice we don't really care 
if sched_clock() wraps each 208 days, unlike for clock-source.


Is this worth supporting?  I'd simply use the low 32 bits and extend it 
to 63 bits using cnt32_to_63(). If the low 32 bits are wrapping too 
fast, then just shifting them down a few positions first should do the 
trick.  That certainly would have a much faster result.


Nicolas
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] clocksource: document some basic concepts, Linus Walleij, (Mon Nov 15, 3:33 am)
Re: [PATCH] clocksource: document some basic concepts, Peter Zijlstra, (Mon Nov 15, 3:48 am)
Re: [PATCH] clocksource: document some basic concepts, Peter Zijlstra, (Mon Nov 15, 3:50 am)
Re: [PATCH] clocksource: document some basic concepts, Randy Dunlap, (Mon Nov 15, 9:34 am)
Re: [PATCH] clocksource: document some basic concepts, john stultz, (Mon Nov 15, 12:45 pm)
Re: [PATCH] clocksource: document some basic concepts, john stultz, (Mon Nov 15, 12:48 pm)
Re: [PATCH] clocksource: document some basic concepts, Nicolas Pitre, (Mon Nov 15, 1:06 pm)
Re: [PATCH] clocksource: document some basic concepts, Peter Zijlstra, (Mon Nov 15, 2:13 pm)