diff options
author | Alan Stern <stern@rowland.harvard.edu> | 2008-03-19 17:39:13 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2008-04-19 22:10:26 -0400 |
commit | 9a3df1f7de0ecaf77a1dde86f2a4dc020f37f87e (patch) | |
tree | 599a884cf4b42c516226c0f845cd32d0295b74ed /include/linux/device.h | |
parent | d288e47c471e1090e80c62ad95882fafbf3f499d (diff) |
PM: Convert wakeup flag accessors to inline functions
This patch (as1058) improves the wakeup macros in include/linux/pm.h.
All but the trivial ones are converted to inline routines, which
requires moving them to a separate header file since they depend on
the definition of struct device.
Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'include/linux/device.h')
-rw-r--r-- | include/linux/device.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/device.h b/include/linux/device.h index d57661129cb2..d7a1ae063b65 100644 --- a/include/linux/device.h +++ b/include/linux/device.h | |||
@@ -475,6 +475,9 @@ struct device { | |||
475 | void (*release)(struct device *dev); | 475 | void (*release)(struct device *dev); |
476 | }; | 476 | }; |
477 | 477 | ||
478 | /* Get the wakeup routines, which depend on struct device */ | ||
479 | #include <linux/pm_wakeup.h> | ||
480 | |||
478 | #ifdef CONFIG_NUMA | 481 | #ifdef CONFIG_NUMA |
479 | static inline int dev_to_node(struct device *dev) | 482 | static inline int dev_to_node(struct device *dev) |
480 | { | 483 | { |