Re: [PATCH] PM / Sleep: Print name of wakeup source that aborts suspend

2012-07-20 Thread Rafael J. Wysocki
On Friday, July 20, 2012, Todd Poynor wrote: > On Wed, Jul 18, 2012 at 09:47:34PM +0200, Rafael J. Wysocki wrote: > > On Wednesday, July 18, 2012, Todd Poynor wrote: > ... > > > +{ > > > + struct wakeup_source *ws; > > > + int active = 0; > > > + struct wakeup_source *last_activity_ws = NULL; > >

Re: [PATCH] PM / Sleep: Print name of wakeup source that aborts suspend

2012-07-20 Thread Rafael J. Wysocki
On Friday, July 20, 2012, Todd Poynor wrote: On Wed, Jul 18, 2012 at 09:47:34PM +0200, Rafael J. Wysocki wrote: On Wednesday, July 18, 2012, Todd Poynor wrote: ... +{ + struct wakeup_source *ws; + int active = 0; + struct wakeup_source *last_activity_ws = NULL; + +

Re: [PATCH] PM / Sleep: Print name of wakeup source that aborts suspend

2012-07-19 Thread Todd Poynor
On Wed, Jul 18, 2012 at 09:47:34PM +0200, Rafael J. Wysocki wrote: > On Wednesday, July 18, 2012, Todd Poynor wrote: ... > > +{ > > + struct wakeup_source *ws; > > + int active = 0; > > + struct wakeup_source *last_activity_ws = NULL; > > + > > + rcu_read_lock(); > > +

Re: [PATCH] PM / Sleep: Print name of wakeup source that aborts suspend

2012-07-19 Thread Todd Poynor
On Wed, Jul 18, 2012 at 09:47:34PM +0200, Rafael J. Wysocki wrote: On Wednesday, July 18, 2012, Todd Poynor wrote: ... +{ + struct wakeup_source *ws; + int active = 0; + struct wakeup_source *last_activity_ws = NULL; + + rcu_read_lock(); + list_for_each_entry_rcu(ws,

Re: [PATCH] PM / Sleep: Print name of wakeup source that aborts suspend

2012-07-18 Thread Rafael J. Wysocki
On Wednesday, July 18, 2012, Todd Poynor wrote: > Print active wakeup sources, or the most recently active wakeup > source, when a PM transition is aborted due to wakeup source > events. > > Signed-off-by: Todd Poynor > --- > drivers/base/power/wakeup.c | 29 + > 1

[PATCH] PM / Sleep: Print name of wakeup source that aborts suspend

2012-07-18 Thread Todd Poynor
Print active wakeup sources, or the most recently active wakeup source, when a PM transition is aborted due to wakeup source events. Signed-off-by: Todd Poynor --- drivers/base/power/wakeup.c | 29 + 1 files changed, 29 insertions(+), 0 deletions(-) A driver or

[PATCH] PM / Sleep: Print name of wakeup source that aborts suspend

2012-07-18 Thread Todd Poynor
Print active wakeup sources, or the most recently active wakeup source, when a PM transition is aborted due to wakeup source events. Signed-off-by: Todd Poynor toddpoy...@google.com --- drivers/base/power/wakeup.c | 29 + 1 files changed, 29 insertions(+), 0

Re: [PATCH] PM / Sleep: Print name of wakeup source that aborts suspend

2012-07-18 Thread Rafael J. Wysocki
On Wednesday, July 18, 2012, Todd Poynor wrote: Print active wakeup sources, or the most recently active wakeup source, when a PM transition is aborted due to wakeup source events. Signed-off-by: Todd Poynor toddpoy...@google.com --- drivers/base/power/wakeup.c | 29