Merge branch 'core/urgent' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux...
[linux-2.6/linux-2.6-openrd.git] / include / linux / resume-trace.h
blobc9ba2fdf807d5cbca878d5873ef38ca50332a201
1 #ifndef RESUME_TRACE_H
2 #define RESUME_TRACE_H
4 #ifdef CONFIG_PM_TRACE
5 #include <asm/resume-trace.h>
7 extern int pm_trace_enabled;
9 struct device;
10 extern void set_trace_device(struct device *);
11 extern void generate_resume_trace(const void *tracedata, unsigned int user);
13 #define TRACE_DEVICE(dev) do { \
14 if (pm_trace_enabled) \
15 set_trace_device(dev); \
16 } while(0)
18 #else
20 #define TRACE_DEVICE(dev) do { } while (0)
21 #define TRACE_RESUME(dev) do { } while (0)
23 #endif
25 #endif