diff options
Diffstat (limited to 'include/linux/resume-trace.h')
-rw-r--r-- | include/linux/resume-trace.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/resume-trace.h b/include/linux/resume-trace.h index c9ba2fd..bc8c388 100644 --- a/include/linux/resume-trace.h +++ b/include/linux/resume-trace.h @@ -6,6 +6,11 @@ extern int pm_trace_enabled; +static inline int pm_trace_is_enabled(void) +{ + return pm_trace_enabled; +} + struct device; extern void set_trace_device(struct device *); extern void generate_resume_trace(const void *tracedata, unsigned int user); @@ -17,6 +22,8 @@ extern void generate_resume_trace(const void *tracedata, unsigned int user); #else +static inline int pm_trace_is_enabled(void) { return 0; } + #define TRACE_DEVICE(dev) do { } while (0) #define TRACE_RESUME(dev) do { } while (0) |