From owner-freebsd-current@FreeBSD.ORG Mon Jun 30 17:04:46 2008 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4E0261065670 for ; Mon, 30 Jun 2008 17:04:46 +0000 (UTC) (envelope-from phk@critter.freebsd.dk) Received: from phk.freebsd.dk (phk.freebsd.dk [130.225.244.222]) by mx1.freebsd.org (Postfix) with ESMTP id 102168FC1C for ; Mon, 30 Jun 2008 17:04:45 +0000 (UTC) (envelope-from phk@critter.freebsd.dk) Received: from critter.freebsd.dk (unknown [192.168.64.3]) by phk.freebsd.dk (Postfix) with ESMTP id 2004E170E4; Mon, 30 Jun 2008 17:04:43 +0000 (UTC) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.14.2/8.14.2) with ESMTP id m5UH4h5c008063; Mon, 30 Jun 2008 17:04:43 GMT (envelope-from phk@critter.freebsd.dk) To: ticso@cicely.de From: "Poul-Henning Kamp" In-Reply-To: Your message of "Mon, 30 Jun 2008 18:59:21 +0200." <20080630165919.GR17364@cicely7.cicely.de> Date: Mon, 30 Jun 2008 17:04:43 +0000 Message-ID: <8062.1214845483@critter.freebsd.dk> Sender: phk@critter.freebsd.dk Cc: Bernd Walter , freebsd-current@freebsd.org Subject: Re: RTC problem X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Jun 2008 17:04:46 -0000 In message <20080630165919.GR17364@cicely7.cicely.de>, Bernd Walter writes: >> The easiest way would be to add a sysctl that when written does it, >> thatway systems without adjkerntz could do it with a cronjob that >> just sysctl's that variable directly. > >Ok - a sysctl which, when written calls resettodr(). >Plus adding this call to adjkerntz independend of wall_cmos_clock >existence. > >I wonder if people might forget about this when they remove adjkerntz >from a small system. The alternative is to do it in the kernel, but I'm not sure if you can do it from a callout, so it's not quite trivial to add. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence.