Commit fe051434 authored by Thomas Gleixner's avatar Thomas Gleixner

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: default avatarThomas Gleixner <tglx@linutronix.de>
parent c42321c7
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
*/ */
static struct lock_class_key irq_desc_lock_class; static struct lock_class_key irq_desc_lock_class;
#if defined(CONFIG_SMP) && defined(CONFIG_GENERIC_HARDIRQS) #if defined(CONFIG_SMP)
static void __init init_irq_default_affinity(void) static void __init init_irq_default_affinity(void)
{ {
alloc_cpumask_var(&irq_default_affinity, GFP_NOWAIT); alloc_cpumask_var(&irq_default_affinity, GFP_NOWAIT);
...@@ -430,7 +430,6 @@ unsigned int kstat_irqs_cpu(unsigned int irq, int cpu) ...@@ -430,7 +430,6 @@ unsigned int kstat_irqs_cpu(unsigned int irq, int cpu)
*per_cpu_ptr(desc->kstat_irqs, cpu) : 0; *per_cpu_ptr(desc->kstat_irqs, cpu) : 0;
} }
#ifdef CONFIG_GENERIC_HARDIRQS
unsigned int kstat_irqs(unsigned int irq) unsigned int kstat_irqs(unsigned int irq)
{ {
struct irq_desc *desc = irq_to_desc(irq); struct irq_desc *desc = irq_to_desc(irq);
...@@ -443,4 +442,3 @@ unsigned int kstat_irqs(unsigned int irq) ...@@ -443,4 +442,3 @@ unsigned int kstat_irqs(unsigned int irq)
sum += *per_cpu_ptr(desc->kstat_irqs, cpu); sum += *per_cpu_ptr(desc->kstat_irqs, cpu);
return sum; return sum;
} }
#endif /* CONFIG_GENERIC_HARDIRQS */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment