2006-06-25 05:27:42 +08:00
|
|
|
#ifndef RESUME_TRACE_H
|
|
|
|
#define RESUME_TRACE_H
|
|
|
|
|
|
|
|
#ifdef CONFIG_PM_TRACE
|
2007-07-21 23:10:41 +08:00
|
|
|
#include <asm/resume-trace.h>
|
2006-06-25 05:27:42 +08:00
|
|
|
|
2006-09-26 14:32:58 +08:00
|
|
|
extern int pm_trace_enabled;
|
|
|
|
|
2006-06-25 05:27:42 +08:00
|
|
|
struct device;
|
|
|
|
extern void set_trace_device(struct device *);
|
2008-05-12 21:44:41 +08:00
|
|
|
extern void generate_resume_trace(const void *tracedata, unsigned int user);
|
2006-06-25 05:27:42 +08:00
|
|
|
|
2007-07-21 23:10:41 +08:00
|
|
|
#define TRACE_DEVICE(dev) do { \
|
|
|
|
if (pm_trace_enabled) \
|
|
|
|
set_trace_device(dev); \
|
|
|
|
} while(0)
|
2006-06-25 05:27:42 +08:00
|
|
|
|
|
|
|
#else
|
|
|
|
|
|
|
|
#define TRACE_DEVICE(dev) do { } while (0)
|
|
|
|
#define TRACE_RESUME(dev) do { } while (0)
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|