From owner-freebsd-hackers@FreeBSD.ORG Fri Mar 26 15:44:02 2010 Return-Path: Delivered-To: freebsd-hackers@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F2A791065672 for ; Fri, 26 Mar 2010 15:44:02 +0000 (UTC) (envelope-from des@des.no) Received: from smtp.des.no (smtp.des.no [194.63.250.102]) by mx1.freebsd.org (Postfix) with ESMTP id B41338FC1B for ; Fri, 26 Mar 2010 15:44:02 +0000 (UTC) Received: from ds4.des.no (des.no [84.49.246.2]) by smtp.des.no (Postfix) with ESMTP id A5F851FFC22; Fri, 26 Mar 2010 15:44:01 +0000 (UTC) Received: by ds4.des.no (Postfix, from userid 1001) id 866D5844F3; Fri, 26 Mar 2010 16:44:01 +0100 (CET) From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= To: Andriy Gapon References: <4BACC791.70502@icyb.net.ua> Date: Fri, 26 Mar 2010 16:44:01 +0100 In-Reply-To: <4BACC791.70502@icyb.net.ua> (Andriy Gapon's message of "Fri, 26 Mar 2010 16:41:21 +0200") Message-ID: <86zl1v84vy.fsf@ds4.des.no> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.95 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-hackers@FreeBSD.org Subject: Re: periodically save current time to time-of-day hardware X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Mar 2010 15:44:03 -0000 Andriy Gapon 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? Although I can see an argument for a sysctl to turn it on or off. IIRC, Linux saves the clock at shutdown, and every 11 minutes if and only if the system clock is synchronized to an external reference. DES --=20 Dag-Erling Sm=C3=B8rgrav - des@des.no