resume-trace.h 472 字节
Newer Older
1 2 3 4
#ifndef RESUME_TRACE_H
#define RESUME_TRACE_H

#ifdef CONFIG_PM_TRACE
N
Nigel Cunningham 已提交
5
#include <asm/resume-trace.h>
6

7 8
extern int pm_trace_enabled;

9 10 11 12
struct device;
extern void set_trace_device(struct device *);
extern void generate_resume_trace(void *tracedata, unsigned int user);

N
Nigel Cunningham 已提交
13 14 15 16
#define TRACE_DEVICE(dev) do { \
	if (pm_trace_enabled) \
		set_trace_device(dev); \
	} while(0)
17 18 19 20 21 22 23 24 25

#else

#define TRACE_DEVICE(dev) do { } while (0)
#define TRACE_RESUME(dev) do { } while (0)

#endif

#endif