blob: f3f4f28c6960cfabce8efd60f974f8d6dfd7eb62 [file] [log] [blame]
Linus Torvaldseb71c872006-06-24 14:27:42 -07001#ifndef RESUME_TRACE_H
2#define RESUME_TRACE_H
3
4#ifdef CONFIG_PM_TRACE
Nigel Cunningham44bf4ce2007-07-21 17:10:41 +02005#include <asm/resume-trace.h>
Linus Torvaldseb71c872006-06-24 14:27:42 -07006
Rafael J. Wysockic5c6ba42006-09-25 23:32:58 -07007extern int pm_trace_enabled;
8
Linus Torvaldseb71c872006-06-24 14:27:42 -07009struct device;
10extern void set_trace_device(struct device *);
11extern void generate_resume_trace(void *tracedata, unsigned int user);
12
Nigel Cunningham44bf4ce2007-07-21 17:10:41 +020013#define TRACE_DEVICE(dev) do { \
14 if (pm_trace_enabled) \
15 set_trace_device(dev); \
16 } while(0)
Linus Torvaldseb71c872006-06-24 14:27:42 -070017
18#else
19
20#define TRACE_DEVICE(dev) do { } while (0)
21#define TRACE_RESUME(dev) do { } while (0)
22
23#endif
24
25#endif