[PATCH] x86_64 irq: Refactor setup_IO_APIC_irq
commita8c8a36736c00b261fd5dd01400c41726f2f19eb
authorEric W. Biederman <ebiederm@xmission.com>
Fri, 23 Feb 2007 11:19:08 +0000 (23 04:19 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Mon, 26 Feb 2007 18:34:07 +0000 (26 10:34 -0800)
tree8b84efce27ce09fe5c9bc9d0613ace3ed9d90c5a
parenta27bc06dd8ee6ad6394e8a76345660b93621b51b
[PATCH] x86_64 irq: Refactor setup_IO_APIC_irq

Currently we have two routines that do practically the same thing
setup_IO_APIC_irq and io_apic_set_pci_routing.  This patch makes
setup_IO_APIC_irq the common factor of these two previous routines.
For setup_IO_APIC_irq all that was needed was to pass the trigger
and polarity to make the code a proper subset of io_apic_set_pci_routing.

Hopefully consolidating these two routines will improve maintenance
there were several differences that simply appear to be one routine
or the other getting it wrong.

Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/x86_64/kernel/io_apic.c