diff options
-rw-r--r-- | include/linux/lockdep.h | 2 | ||||
-rw-r--r-- | kernel/irq/handle.c | 5 |
2 files changed, 1 insertions, 6 deletions
diff --git a/include/linux/lockdep.h b/include/linux/lockdep.h index 29aec6e10020..9dba554c802c 100644 --- a/include/linux/lockdep.h +++ b/include/linux/lockdep.h | |||
@@ -377,7 +377,7 @@ do { \ | |||
377 | 377 | ||
378 | #endif /* CONFIG_LOCK_STAT */ | 378 | #endif /* CONFIG_LOCK_STAT */ |
379 | 379 | ||
380 | #if defined(CONFIG_TRACE_IRQFLAGS) && defined(CONFIG_GENERIC_HARDIRQS) | 380 | #ifdef CONFIG_GENERIC_HARDIRQS |
381 | extern void early_init_irq_lock_class(void); | 381 | extern void early_init_irq_lock_class(void); |
382 | #else | 382 | #else |
383 | static inline void early_init_irq_lock_class(void) | 383 | static inline void early_init_irq_lock_class(void) |
diff --git a/kernel/irq/handle.c b/kernel/irq/handle.c index f1a23069c20a..6492400cb50d 100644 --- a/kernel/irq/handle.c +++ b/kernel/irq/handle.c | |||
@@ -422,11 +422,8 @@ out: | |||
422 | } | 422 | } |
423 | #endif | 423 | #endif |
424 | 424 | ||
425 | |||
426 | #ifdef CONFIG_TRACE_IRQFLAGS | ||
427 | void early_init_irq_lock_class(void) | 425 | void early_init_irq_lock_class(void) |
428 | { | 426 | { |
429 | #ifndef CONFIG_SPARSE_IRQ | ||
430 | struct irq_desc *desc; | 427 | struct irq_desc *desc; |
431 | int i; | 428 | int i; |
432 | 429 | ||
@@ -436,9 +433,7 @@ void early_init_irq_lock_class(void) | |||
436 | 433 | ||
437 | lockdep_set_class(&desc->lock, &irq_desc_lock_class); | 434 | lockdep_set_class(&desc->lock, &irq_desc_lock_class); |
438 | } | 435 | } |
439 | #endif | ||
440 | } | 436 | } |
441 | #endif | ||
442 | 437 | ||
443 | #ifdef CONFIG_SPARSE_IRQ | 438 | #ifdef CONFIG_SPARSE_IRQ |
444 | unsigned int kstat_irqs_cpu(unsigned int irq, int cpu) | 439 | unsigned int kstat_irqs_cpu(unsigned int irq, int cpu) |