nfsd: don't fail unchecked creates of non-special files
[zen-stable.git] / include / linux / resume-trace.h
blobf31db23687828da2e209696c8612cb3f7a195801
1 #ifndef RESUME_TRACE_H
2 #define RESUME_TRACE_H
4 #ifdef CONFIG_PM_TRACE
5 #include <asm/resume-trace.h>
6 #include <linux/types.h>
8 extern int pm_trace_enabled;
10 static inline int pm_trace_is_enabled(void)
12 return pm_trace_enabled;
15 struct device;
16 extern void set_trace_device(struct device *);
17 extern void generate_resume_trace(const void *tracedata, unsigned int user);
18 extern int show_trace_dev_match(char *buf, size_t size);
20 #define TRACE_DEVICE(dev) do { \
21 if (pm_trace_enabled) \
22 set_trace_device(dev); \
23 } while(0)
25 #else
27 static inline int pm_trace_is_enabled(void) { return 0; }
29 #define TRACE_DEVICE(dev) do { } while (0)
30 #define TRACE_RESUME(dev) do { } while (0)
32 #endif
34 #endif