diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2011-05-18 06:53:03 -0400 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2011-05-18 08:59:07 -0400 |
commit | fe0514348452f5b0ad7e842b0d71b8322b1297de (patch) | |
tree | bdf49e276958303c7b55b362eeffc0a149b1bb2f /kernel/irq | |
parent | c42321c76b0ef472e3bae4bfcb0f46ab19e038ef (diff) |
genirq: Remove pointless ifdefs
kernel/irq/ is only built when CONFIG_GENERIC_HARDIRQS=y. So making
code inside of kernel/irq/ conditional on CONFIG_GENERIC_HARDIRQS is
pointless.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'kernel/irq')
-rw-r--r-- | kernel/irq/irqdesc.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/kernel/irq/irqdesc.c b/kernel/irq/irqdesc.c index 2c039c9b9383..e07b975fdc5a 100644 --- a/kernel/irq/irqdesc.c +++ b/kernel/irq/irqdesc.c | |||
@@ -22,7 +22,7 @@ | |||
22 | */ | 22 | */ |
23 | static struct lock_class_key irq_desc_lock_class; | 23 | static struct lock_class_key irq_desc_lock_class; |
24 | 24 | ||
25 | #if defined(CONFIG_SMP) && defined(CONFIG_GENERIC_HARDIRQS) | 25 | #if defined(CONFIG_SMP) |
26 | static void __init init_irq_default_affinity(void) | 26 | static void __init init_irq_default_affinity(void) |
27 | { | 27 | { |
28 | alloc_cpumask_var(&irq_default_affinity, GFP_NOWAIT); | 28 | alloc_cpumask_var(&irq_default_affinity, GFP_NOWAIT); |
@@ -430,7 +430,6 @@ unsigned int kstat_irqs_cpu(unsigned int irq, int cpu) | |||
430 | *per_cpu_ptr(desc->kstat_irqs, cpu) : 0; | 430 | *per_cpu_ptr(desc->kstat_irqs, cpu) : 0; |
431 | } | 431 | } |
432 | 432 | ||
433 | #ifdef CONFIG_GENERIC_HARDIRQS | ||
434 | unsigned int kstat_irqs(unsigned int irq) | 433 | unsigned int kstat_irqs(unsigned int irq) |
435 | { | 434 | { |
436 | struct irq_desc *desc = irq_to_desc(irq); | 435 | struct irq_desc *desc = irq_to_desc(irq); |
@@ -443,4 +442,3 @@ unsigned int kstat_irqs(unsigned int irq) | |||
443 | sum += *per_cpu_ptr(desc->kstat_irqs, cpu); | 442 | sum += *per_cpu_ptr(desc->kstat_irqs, cpu); |
444 | return sum; | 443 | return sum; |
445 | } | 444 | } |
446 | #endif /* CONFIG_GENERIC_HARDIRQS */ | ||