Browse Source

genirq: Make generic irq chip depend on CONFIG_GENERIC_IRQ_CHIP

Only compile it in when there are users.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: linux-arm-kernel@lists.infradead.org
Thomas Gleixner 14 years ago
parent
commit
c42321c76b
2 changed files with 5 additions and 1 deletions
  1. 4 0
      kernel/irq/Kconfig
  2. 1 1
      kernel/irq/Makefile

+ 4 - 0
kernel/irq/Kconfig

@@ -48,6 +48,10 @@ config IRQ_PREFLOW_FASTEOI
 config IRQ_EDGE_EOI_HANDLER
        bool
 
+# Generic configurable interrupt chip implementation
+config GENERIC_IRQ_CHIP
+       bool
+
 # Support forced irq threading
 config IRQ_FORCED_THREADING
        bool

+ 1 - 1
kernel/irq/Makefile

@@ -1,6 +1,6 @@
 
 obj-y := irqdesc.o handle.o manage.o spurious.o resend.o chip.o dummychip.o devres.o
-obj-y += generic-chip.o
+obj-$(CONFIG_GENERIC_IRQ_CHIP) += generic-chip.o
 obj-$(CONFIG_GENERIC_IRQ_PROBE) += autoprobe.o
 obj-$(CONFIG_PROC_FS) += proc.o
 obj-$(CONFIG_GENERIC_PENDING_IRQ) += migration.o