PageRenderTime 20ms CodeModel.GetById 10ms app.highlight 5ms RepoModel.GetById 1ms app.codeStats 0ms

/include/linux/resume-trace.h

https://github.com/airy09/android_kernel_sony_apq8064
C Header | 34 lines | 24 code | 10 blank | 0 comment | 3 complexity | d54d6cf976af3ca128bc57f5bfd1cfea MD5 | raw file
 1#ifndef RESUME_TRACE_H
 2#define RESUME_TRACE_H
 3
 4#ifdef CONFIG_PM_TRACE
 5#include <asm/resume-trace.h>
 6#include <linux/types.h>
 7
 8extern int pm_trace_enabled;
 9
10static inline int pm_trace_is_enabled(void)
11{
12       return pm_trace_enabled;
13}
14
15struct device;
16extern void set_trace_device(struct device *);
17extern void generate_resume_trace(const void *tracedata, unsigned int user);
18extern int show_trace_dev_match(char *buf, size_t size);
19
20#define TRACE_DEVICE(dev) do { \
21	if (pm_trace_enabled) \
22		set_trace_device(dev); \
23	} while(0)
24
25#else
26
27static inline int pm_trace_is_enabled(void) { return 0; }
28
29#define TRACE_DEVICE(dev) do { } while (0)
30#define TRACE_RESUME(dev) do { } while (0)
31
32#endif
33
34#endif