ACPI/PCI: Negotiate _OSC control bits before requesting them
[linux-2.6/cjktty.git] / include / linux / resume-trace.h
blobbc8c3881c729fb29128b373b8fb6e0ad68feac45
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 static inline int pm_trace_is_enabled(void)
11 return pm_trace_enabled;
14 struct device;
15 extern void set_trace_device(struct device *);
16 extern void generate_resume_trace(const void *tracedata, unsigned int user);
18 #define TRACE_DEVICE(dev) do { \
19 if (pm_trace_enabled) \
20 set_trace_device(dev); \
21 } while(0)
23 #else
25 static inline int pm_trace_is_enabled(void) { return 0; }
27 #define TRACE_DEVICE(dev) do { } while (0)
28 #define TRACE_RESUME(dev) do { } while (0)
30 #endif
32 #endif