From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from sipsolutions.net (crystal.sipsolutions.net [195.210.38.204]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTP id F19C2DDE00 for ; Wed, 24 Jan 2007 19:47:42 +1100 (EST) Subject: Re: [PATCH 2/3] powermac: proper time of day after resume From: Johannes Berg To: Benjamin Herrenschmidt In-Reply-To: <1169620444.18754.66.camel@localhost.localdomain> References: <20061213123819.403286000@sipsolutions.net> > <20061213123945.386891000@sipsolutions.net> > <1169620444.18754.66.camel@localhost.localdomain> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-xXgGEEG5ilHp3dF7Uzog" Date: Wed, 24 Jan 2007 09:46:52 +0100 Message-Id: <1169628412.3061.11.camel@johannes.berg> Mime-Version: 1.0 Cc: linuxppc-dev@ozlabs.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , --=-xXgGEEG5ilHp3dF7Uzog Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Wed, 2007-01-24 at 17:34 +1100, Benjamin Herrenschmidt wrote: > On Wed, 2006-12-13 at 13:38 +0100, Johannes Berg wrote: > > plain text document attachment (time-resume.patch) > > This patch converts the time restore code from a PMU notifier to a regu= lar > > sys device so I can profit from it even when I don't suspend through th= e > > PMU, i.e. suspend to disk. > >=20 > > Also another step towards dropping pmu_sleep_notifier completely. >=20 > I'd rather do it differently: On suspend, read the RTC and save the > value. On resume, read it again, diff the values, and add that to the > current time. Alright, I can do that too, this simply shuffled the old code around. Will have a look at it. johannes --=-xXgGEEG5ilHp3dF7Uzog Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Comment: Johannes Berg (powerbook) iD8DBQBFtxz7/ETPhpq3jKURAjgSAJ9fzVv71aCXgyGFe83vJak565XG3gCfQxui pXjn77NcT8I6Z846rY1KckE= =/rBS -----END PGP SIGNATURE----- --=-xXgGEEG5ilHp3dF7Uzog--