From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.175]) by ozlabs.org (Postfix) with ESMTP id F19A5DE0CB for ; Thu, 25 Jan 2007 19:10:14 +1100 (EST) Received: by ug-out-1314.google.com with SMTP id k3so374784ugf for ; Thu, 25 Jan 2007 00:10:13 -0800 (PST) Subject: Re: [PATCH 2/3] powermac: proper time of day after resume From: Michel =?ISO-8859-1?Q?D=E4nzer?= To: Benjamin Herrenschmidt In-Reply-To: <1169712376.24996.87.camel@localhost.localdomain> References: <20061213123819.403286000@sipsolutions.net> <20061213123945.386891000@sipsolutions.net> <1169620444.18754.66.camel@localhost.localdomain> <20070124085420.GA19810@iram.es> <1169631177.18754.82.camel@localhost.localdomain> <20070124103621.GA22579@iram.es> <2435847C-A9FC-4430-A122-416B9B347038@kernel.crashing.org> <1169675091.18754.84.camel@localhost.localdomain> <1169710754.24087.36.camel@thor.sulgenrain.local> <1169712376.24996.87.camel@localhost.localdomain> Content-Type: text/plain; charset=utf-8 Date: Thu, 25 Jan 2007 09:10:14 +0100 Message-Id: <1169712614.24087.46.camel@thor.sulgenrain.local> Mime-Version: 1.0 Cc: linuxppc-dev@ozlabs.org, Johannes Berg List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Thu, 2007-01-25 at 19:06 +1100, Benjamin Herrenschmidt wrote: > On Thu, 2007-01-25 at 08:39 +0100, Michel Dänzer wrote: > > On Thu, 2007-01-25 at 08:44 +1100, Benjamin Herrenschmidt wrote: > > > > > The best solution may require informing the user space ntp code of > > > > > such events. This requires very likely modifications to ntp itself > > > > > (I may be wrong, I've not looked at NTP code for 5 years or so). > > > > > > > > Doesn't the kernel send signals to init on suspend/resume > > > > events, just like with power fail events? You can hook on > > > > that. > > > > > > I don't think it does... at least not on powerbooks. > > > > It could be handled by scripts invoked from pbbuttonsd or pmud on wakeup > > though, couldn't it? I thought there used to be one for that > > in /etc/apm/, but I can't find it now... > > Well, I'm not sure I've fully followed how these things changed over the > last couple of years but yes, there used to be one called by pmud and > possibly pbbuttonsd too in /etc/power/pwrctl but distro I think -also- > hook that top APM stuffs among others. FWIW, it seems to be handled indirectly here via /etc/network/if-up.d/ntp, which is invoked whenever a network interface goes up, which happens automatically on wakeup with network-manager. -- Earthling Michel Dänzer | http://tungstengraphics.com Libre software enthusiast | Debian, X and DRI developer