x86, apic: introduce io_apic_irq_attr
authorYinghai Lu <yinghai@kernel.org>
Fri, 15 May 2009 20:05:16 +0000 (13:05 -0700)
committerIngo Molnar <mingo@elte.hu>
Mon, 18 May 2009 06:38:55 +0000 (08:38 +0200)
commite5198075c67a22ec9a09565b1ce88d3d3f5ba855
tree3d4ea0efd8575e677509b022e649c62d4786ed55
parentb5710ce92a8cf8e3fc0ffc230cfdbfa23463f1c8
x86, apic: introduce io_apic_irq_attr

according to Ingo, io_apic irq-setup related functions have too many
parameters with a repetitive signature.

So reduce related funcs to get less params by passing a pointer
to a newly defined io_apic_irq_attr structure.

v2: io_apic_irq ==> irq_attr
    triggering ==> trigger

v3: add set_io_apic_irq_attr

[ Impact: cleanup ]

Signed-off-by: Yinghai Lu <yinghai@kernel.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Jesse Barnes <jbarnes@virtuousgeek.org>
Cc: Len Brown <lenb@kernel.org>
LKML-Reference: <4A08ACD3.2070401@kernel.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/include/asm/hw_irq.h
arch/x86/include/asm/io_apic.h
arch/x86/kernel/acpi/boot.c
arch/x86/kernel/apic/io_apic.c
arch/x86/pci/irq.c
drivers/pci/hotplug/ibmphp_core.c