Subject: re: SMP & ntpd interaction?
To: Paul Kranenburg <pk@cs.few.eur.nl>
From: matthew green <mrg@eterna.com.au>
List: tech-kern
Date: 01/18/2003 20:02:18
[ from port-sparc@ ]
BTW. it would be nice to have atomic updates of `time' and `mono_time',
say, by providing a MD version of `BUMP_TIME()'. On the sparc, it
can use `std' to update the timevals, just like microtime() use
`ldd' to read it.
there's no reason not to do this is there? mono_time isn't hard but
time is in the NTP case... we can simply add an #ifndef BUMPTIME()
to kern_clock.c and have it defined in <machine/cpu.h> ? that would
handle the !NTP case.. perhaps an API change for BUMPTIME() .. have
it return true if it had to also bump the tv_sec, then the NTP case
(well.. the "HIGHBALL" case is still not handled..) case would then
know to perform the additional processing...
.mrg.