[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <Pine.LNX.4.44L0.1012021038040.1921-100000@iolanthe.rowland.org>
Date: Thu, 2 Dec 2010 10:38:51 -0500 (EST)
From: Alan Stern <stern@...land.harvard.edu>
To: "Rafael J. Wysocki" <rjw@...k.pl>
cc: Linux-pm mailing list <linux-pm@...ts.linux-foundation.org>,
LKML <linux-kernel@...r.kernel.org>,
Ming Lei <tom.leiming@...il.com>
Subject: Re: [PATCH] PM: Prevent dpm_prepare() from returning errors
unnecessarily
On Thu, 2 Dec 2010, Rafael J. Wysocki wrote:
> OK, so please let me know what you think of the appended patch (on top of the
> previous one).
>
> Thanks,
> Rafael
> Index: linux-2.6/include/linux/suspend.h
> ===================================================================
> --- linux-2.6.orig/include/linux/suspend.h
> +++ linux-2.6/include/linux/suspend.h
> @@ -292,7 +292,7 @@ extern int unregister_pm_notifier(struct
> /* drivers/base/power/wakeup.c */
> extern bool events_check_enabled;
>
> -extern bool pm_check_wakeup_events(void);
> +extern bool pm_wakeup_pending(void);
> extern bool pm_get_wakeup_count(unsigned int *count);
> extern bool pm_save_wakeup_count(unsigned int count);
> #else /* !CONFIG_PM_SLEEP */
> @@ -309,7 +309,7 @@ static inline int unregister_pm_notifier
>
> #define pm_notifier(fn, pri) do { (void)(fn); } while (0)
>
> -static inline bool pm_check_wakeup_events(void) { return true; }
> +static inline bool pm_wakeup_pending(void) { return true; }
Shouldn't this return false?
Alan Stern
--
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