x86/io_apic: Move and reenable irq only when CONFIG_GENERIC_PENDING_IRQ=y
authorAlexander Gordeev <agordeev@redhat.com>
Tue, 20 Mar 2012 14:19:36 +0000 (15:19 +0100)
committerIngo Molnar <mingo@kernel.org>
Fri, 23 Mar 2012 12:47:25 +0000 (13:47 +0100)
commit4da7072ad6831a35a11341097ce477e18651bedd
tree5fc5b77adec0691174a20453884d8130a2d93335
parentb7157acf429e6aef690646ba964b9ebd25049ec2
x86/io_apic: Move and reenable irq only when CONFIG_GENERIC_PENDING_IRQ=y

This patch removes dead code from certain .config variations.

When CONFIG_GENERIC_PENDING_IRQ=n irq move and reenable code is
never get executed, nor do_unmask_irq variable updates its init
value. Move the code under CONFIG_GENERIC_PENDING_IRQ macro.

Signed-off-by: Alexander Gordeev <agordeev@redhat.com>
Link: http://lkml.kernel.org/r/20120320141935.GA24806@dhcp-26-207.brq.redhat.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/kernel/apic/io_apic.c