[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20090805045533.C3574526EA5@mailhub.coreip.homeip.net>
Date: Tue, 4 Aug 2009 21:55:33 -0700
From: Dmitry Torokhov <dmitry.torokhov@...il.com>
To: Albin Tonnerre <albin.tonnerre@...e-electrons.com>
Cc: "Rafael J. Wysocki" <rjw@...k.pl>, Frans Pop <elendil@...net.nl>,
linux-kernel@...r.kernel.org,
Linux PM List <linux-pm@...ts.linux-foundation.org>
Subject: Re: [PATCH] Add SIMPLE_PM_OPS: make switching to dev_pm_ops less
error-prone
On Tue, Aug 04, 2009 at 11:36:12AM +0200, Albin Tonnerre wrote:
> In a number of cases, the .suspend, .freeze, .poweroff and .resume,
> .thaw, .restore functions are identical. However, they all need to be
> assigned to avoid regressionsm as the previous code called .suspend
> resp. .resume in all those cases. SIMPLE_PM_OPS allows to deal with
> this case.
>
I'd much rather have conversions done with a bit more analysis now that
our framework is more flexible and we can have specialized routines for
hibernation and suspend.
Maybe we should try changing from run-time to build time warning so that
users are not overly concerned with it?
Thanks.
--
Dmitry
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists