Date: Fri, 26 Mar 2010 17:53:50 +0200 From: Andriy Gapon <avg@icyb.net.ua> To: =?UTF-8?B?RGFnLUVybGluZyBTbcO4cmdyYXY=?= <des@des.no> Cc: freebsd-hackers@FreeBSD.org Subject: Re: periodically save current time to time-of-day hardware Message-ID: <4BACD88E.2040803@icyb.net.ua> In-Reply-To: <86zl1v84vy.fsf@ds4.des.no> References: <4BACC791.70502@icyb.net.ua> <86zl1v84vy.fsf@ds4.des.no>
next in thread | previous in thread | raw e-mail | index | archive | help
on 26/03/2010 17:44 Dag-Erling Smørgrav said the following: > Andriy Gapon <avg@icyb.net.ua> writes: >> What do you think about the following patch or something similar? > > I've wondered for years why we didn't already do this. > >> Also, I am aware that the period should be configurable (sysctl). > > Why? Because there would always be someone who would want a different value :) > Although I can see an argument for a sysctl to turn it on or off. Good idea. > IIRC, Linux saves the clock at shutdown, and every 11 minutes if and > only if the system clock is synchronized to an external reference. Both are good ideas too. I know how to add a shutdown hook (event handler), but I don't know how to check if time synchronization is taking place. -- Andriy Gapon
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4BACD88E.2040803>