on 06/04/2010 15:47 Andriy Gapon said the following: > on 30/03/2010 19:43 Andriy Gapon said the following: >> do you think that periodic saving of system clock to hardware and making >> resettodr >> asynchronous are dependent issues? Or are they orthogonal and can be >> implemented >> independently? > > A new version of the patch: > http://people.freebsd.org/~avg/periodic_resettodr.diff
Given total lack of reviews and comments I am keeping this patch for my local use. > Some notes: > - this patch doesn't implement any resettodr enhancements proposed earlier: > making > it non-blocking/asynchronous and saving time closer to seconds boundary; > - the patch adds code for saving time on shutdown, adds logic for checking ntp > synchronization status and for dynamically stoping/(re-)starting the callout > via > period sysctl; > - the patch consists of two pieces: the first is abstracting ntp status check > into > a separate function and the other is all the time saving code; > - I don't feel that kern_ntptime.c is best place for this code, I only chose > it > because of ntp status checking; perhaps ntp_is_time_error needs to be made > public > and the code moved to a better file; suggestion are welcome! > > I also welcome any comments and suggestions on code style, identifier naming, > logic, strategy, etc. > Thank you! > > P.S. it seems that machdep is not the best place for "RTC" sysctls, but I am > deferring this issue at the moment. > -- Andriy Gapon _______________________________________________ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"