aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/pm.h
diff options
context:
space:
mode:
authorJeff Garzik <jeff@garzik.org>2006-04-18 05:39:10 -0400
committerJeff Garzik <jeff@garzik.org>2006-04-18 05:39:10 -0400
commitb2b4b9a7c09ad66e095b13c97946a96f2dc8284e (patch)
treefb856b5998df266bd83e6e64b8884287e812845a /include/linux/pm.h
parent875999c5539999f61a45620aae0c3e5fb1d2b035 (diff)
parent4741c336d27dec3ea68a35659abb8dc82b142388 (diff)
downloadkernel_samsung_tuna-b2b4b9a7c09ad66e095b13c97946a96f2dc8284e.zip
kernel_samsung_tuna-b2b4b9a7c09ad66e095b13c97946a96f2dc8284e.tar.gz
kernel_samsung_tuna-b2b4b9a7c09ad66e095b13c97946a96f2dc8284e.tar.bz2
Merge branch 'upstream'
Diffstat (limited to 'include/linux/pm.h')
-rw-r--r--include/linux/pm.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/pm.h b/include/linux/pm.h
index 6df2585..66be589 100644
--- a/include/linux/pm.h
+++ b/include/linux/pm.h
@@ -199,6 +199,12 @@ extern int device_suspend(pm_message_t state);
extern int dpm_runtime_suspend(struct device *, pm_message_t);
extern void dpm_runtime_resume(struct device *);
+extern void __suspend_report_result(const char *function, void *fn, int ret);
+
+#define suspend_report_result(fn, ret) \
+ do { \
+ __suspend_report_result(__FUNCTION__, fn, ret); \
+ } while (0)
#else /* !CONFIG_PM */
@@ -219,6 +225,8 @@ static inline void dpm_runtime_resume(struct device * dev)
{
}
+#define suspend_report_result(fn, ret) do { } while (0)
+
#endif
/* changes to device_may_wakeup take effect on the next pm state change.