mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
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 <[email protected]>
Cc: Andrew Morton <[email protected]>
Cc: Jesse Barnes <[email protected]>
Cc: Len Brown <[email protected]>
LKML-Reference: <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
This commit is contained in:
parent
b5710ce92a
commit
e5198075c6
6 changed files with 66 additions and 47 deletions
|
|
@ -155,15 +155,13 @@ int ibmphp_init_devno(struct slot **cur_slot)
|
|||
for (loop = 0; loop < len; loop++) {
|
||||
if ((*cur_slot)->number == rtable->slots[loop].slot &&
|
||||
(*cur_slot)->bus == rtable->slots[loop].bus) {
|
||||
int ioapic = -1, ioapic_pin = -1;
|
||||
int triggering, polarity;
|
||||
struct io_apic_irq_attr irq_attr;
|
||||
|
||||
(*cur_slot)->device = PCI_SLOT(rtable->slots[loop].devfn);
|
||||
for (i = 0; i < 4; i++)
|
||||
(*cur_slot)->irq[i] = IO_APIC_get_PCI_irq_vector((int) (*cur_slot)->bus,
|
||||
(int) (*cur_slot)->device, i,
|
||||
&ioapic, &ioapic_pin,
|
||||
&triggering, &polarity);
|
||||
&irq_attr);
|
||||
|
||||
debug("(*cur_slot)->irq[0] = %x\n",
|
||||
(*cur_slot)->irq[0]);
|
||||
|
|
|
|||
Loading…
Reference in a new issue