4 #include <linux/types.h>
6 #include <asm/pm-trace.h>
8 extern int pm_trace_enabled;
9 extern bool pm_trace_rtc_abused;
11 static inline bool pm_trace_rtc_valid(void)
13 return !pm_trace_rtc_abused;
16 static inline int pm_trace_is_enabled(void)
18 return pm_trace_enabled;
22 extern void set_trace_device(struct device *);
23 extern void generate_pm_trace(const void *tracedata, unsigned int user);
24 extern int show_trace_dev_match(char *buf, size_t size);
26 #define TRACE_DEVICE(dev) do { \
27 if (pm_trace_enabled) \
28 set_trace_device(dev); \
33 static inline bool pm_trace_rtc_valid(void) { return true; }
34 static inline int pm_trace_is_enabled(void) { return 0; }
36 #define TRACE_DEVICE(dev) do { } while (0)
37 #define TRACE_RESUME(dev) do { } while (0)
38 #define TRACE_SUSPEND(dev) do { } while (0)