Subject: Re: Need help with timecounters/todr
To: None <kardel@netbsd.org>
From: Jason Thorpe <thorpej@shagadelic.org>
List: port-alpha
Date: 09/21/2006 22:00:06
On Sep 21, 2006, at 9:41 PM, Frank Kardel wrote:

> Jason Thorpe wrote:
>>
>> On Sep 19, 2006, at 6:31 AM, Garrett D'Amore wrote:
>>
>>> This was exactly the part I wasn't sure about.  I _think_ this  
>>> should be
>>> done (or similar logic) as part of timecounters -- i.e. each  
>>> processor
>>> needs to have some kind of synchronization -- probably  
>>> implementing the
>>> tc_pps method for timecounters.  I'm not an alpha expert though,  
>>> so I'm
>>> not 100% sure.
>>
>> I think Frank needs to step in here and take a look.
> Ok, I'll take a look at that. Solutions probably lie along the line  
> of the TSC
> code which is basically the old Mills strategy. Tests still need to  
> be done
> on actual hardware.

Right, and it would be nice to update the kern_microtime.c version  
(that includes all of the microset logic) so that we don't have to  
replicate it N times :-)



>>   I am NOT a time-keeping expert by any means (my copyright notice  
>> at the top of kern_microtime.c not withstanding; I was mostly  
>> adopting Mills' code to our kernel).
>>
>> -- thorpej
>
> Frank

-- thorpej