[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CACVXFVNGHtXqiZtA0V6FuCEvebSs1F=jQG=nAYqwQjD6jdG2+Q@mail.gmail.com>
Date: Fri, 17 Aug 2012 09:54:56 +0800
From: Ming Lei <ming.lei@...onical.com>
To: Linus Torvalds <torvalds@...ux-foundation.org>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>
Cc: "Rafael J. Wysocki" <rjw@...k.pl>,
Borislav Petkov <borislav.petkov@....com>,
linux-kernel@...r.kernel.org, linux-pm@...r.kernel.org,
Ming Lei <ming.lei@...onical.com>
Subject: Re: [RFC PATCH 2/3] PM / Sleep: introduce dpm_for_each_dev
On Fri, Aug 17, 2012 at 9:45 AM, Ming Lei <ming.lei@...onical.com> wrote:
> diff --git a/include/linux/pm.h b/include/linux/pm.h
> index 44d1f23..bf86f89 100644
> --- a/include/linux/pm.h
> +++ b/include/linux/pm.h
> @@ -640,6 +640,7 @@ extern void __suspend_report_result(const char *function, void *fn, int ret);
> } while (0)
>
> extern int device_pm_wait_for_dev(struct device *sub, struct device *dev);
> +extern void dpm_for_each_dev(void *data, void (*fn)(struct device *, void *));
>
> extern int pm_generic_prepare(struct device *dev);
> extern int pm_generic_suspend_late(struct device *dev);
> @@ -679,6 +680,10 @@ static inline int device_pm_wait_for_dev(struct device *a, struct device *b)
> return 0;
> }
>
> +void dpm_for_each_dev(void *data, void (*fn)(struct device *, void *))
Sorry, the above line is wrong, and should be defined as 'static inline'.
Please drop this one and take the attachment patch.
Thanks,
--
Ming Lei
Download attachment "0002-PM-Sleep-introduce-dpm_for_each_dev.patch" of type "application/octet-stream" (2366 bytes)
Powered by blists - more mailing lists