diff options
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/lockdep.h | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/include/linux/lockdep.h b/include/linux/lockdep.h index 498bfbd3b4e1..ea097dddc44f 100644 --- a/include/linux/lockdep.h +++ b/include/linux/lockdep.h | |||
| @@ -281,15 +281,25 @@ struct lock_class_key { }; | |||
| 281 | #if defined(CONFIG_TRACE_IRQFLAGS) && defined(CONFIG_GENERIC_HARDIRQS) | 281 | #if defined(CONFIG_TRACE_IRQFLAGS) && defined(CONFIG_GENERIC_HARDIRQS) |
| 282 | extern void early_init_irq_lock_class(void); | 282 | extern void early_init_irq_lock_class(void); |
| 283 | #else | 283 | #else |
| 284 | # define early_init_irq_lock_class() do { } while (0) | 284 | static inline void early_init_irq_lock_class(void) |
| 285 | { | ||
| 286 | } | ||
| 285 | #endif | 287 | #endif |
| 286 | 288 | ||
| 287 | #ifdef CONFIG_TRACE_IRQFLAGS | 289 | #ifdef CONFIG_TRACE_IRQFLAGS |
| 288 | extern void early_boot_irqs_off(void); | 290 | extern void early_boot_irqs_off(void); |
| 289 | extern void early_boot_irqs_on(void); | 291 | extern void early_boot_irqs_on(void); |
| 292 | extern void print_irqtrace_events(struct task_struct *curr); | ||
| 290 | #else | 293 | #else |
| 291 | # define early_boot_irqs_off() do { } while (0) | 294 | static inline void early_boot_irqs_off(void) |
| 292 | # define early_boot_irqs_on() do { } while (0) | 295 | { |
| 296 | } | ||
| 297 | static inline void early_boot_irqs_on(void) | ||
| 298 | { | ||
| 299 | } | ||
| 300 | static inline void print_irqtrace_events(struct task_struct *curr) | ||
| 301 | { | ||
| 302 | } | ||
| 293 | #endif | 303 | #endif |
| 294 | 304 | ||
| 295 | /* | 305 | /* |
