PM / Runtime: Add macro to test for runtime PM events
authorAlan Stern <stern@rowland.harvard.edu>
Fri, 19 Aug 2011 21:49:48 +0000 (23:49 +0200)
committerRafael J. Wysocki <rjw@sisk.pl>
Fri, 19 Aug 2011 21:49:48 +0000 (23:49 +0200)
This patch (as1482) adds a macro for testing whether or not a
pm_message value represents an autosuspend or autoresume (i.e., a
runtime PM) event.  Encapsulating this notion seems preferable to
open-coding the test all over the place.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Acked-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>

No differences found