[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1177687461.3565.38.camel@johannes.berg>
Date: Fri, 27 Apr 2007 17:24:21 +0200
From: Johannes Berg <johannes@...solutions.net>
To: "Rafael J. Wysocki" <rjw@...k.pl>
Cc: linux-pm@...ts.linux-foundation.org,
Alan Stern <stern@...land.harvard.edu>,
Nick Piggin <npiggin@...e.de>, Ingo Molnar <mingo@...e.hu>,
suspend2-devel@...ts.suspend2.net, Mike Galbraith <efault@....de>,
Kernel development list <linux-kernel@...r.kernel.org>,
Con Kolivas <kernel@...ivas.org>, Adrian Bunk <bunk@...sta.de>,
Thomas Gleixner <tglx@...utronix.de>,
Pavel Machek <pavel@....cz>,
Andrew Morton <akpm@...ux-foundation.org>,
Linus Torvalds <torvalds@...ux-foundation.org>,
Arjan van de Ven <arjan@...radead.org>
Subject: Re: [linux-pm] driver power operations (was Re: suspend2 merge)
On Fri, 2007-04-27 at 17:12 +0200, Rafael J. Wysocki wrote:
> How do we differentiate between post_snapshot() and post_restore()?
> I mean, after the restore we're entering the same code path as after the
> snapshot, so do we use a global var for this purpose?
That's pretty easy to do though, we already know at which point we are
so we just put an if(...) invoke_post_snapshot() else
invoke_post_restore().
johannes
Download attachment "signature.asc" of type "application/pgp-signature" (191 bytes)
Powered by blists - more mailing lists