mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
vtd: Inline redundant nr_ioapic_entries macro
This macro was there when ia64 was a thing, nowaday, this macro isn't meaningful anymore and is actually a slightly disguised nr_ioapic_entries array access. Signed-off-by: Teddy Astie <teddy.astie@vates.tech> Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
This commit is contained in:
1 parent
389347a75f
commit
dac2111fb8
1 file changed
+2
-3
@@ -31,7 +31,6 @@
|
||||
|
||||
#include <asm/apic.h>
|
||||
#include <asm/io_apic.h>
|
||||
#define nr_ioapic_entries(i) nr_ioapic_entries[i]
|
||||
|
||||
/*
|
||||
* source validation type (SVT)
|
||||
@@ -68,7 +67,7 @@ static int init_apic_pin_2_ir_idx(void)
|
||||
|
||||
nr_pins = 0;
|
||||
for ( i = 0; i < nr_ioapics; i++ )
|
||||
nr_pins += nr_ioapic_entries(i);
|
||||
nr_pins += nr_ioapic_entries[i];
|
||||
|
||||
_apic_pin_2_ir_idx = xmalloc_array(int, nr_pins);
|
||||
apic_pin_2_ir_idx = xmalloc_array(int *, nr_ioapics);
|
||||
@@ -86,7 +85,7 @@ static int init_apic_pin_2_ir_idx(void)
|
||||
for ( i = 0; i < nr_ioapics; i++ )
|
||||
{
|
||||
apic_pin_2_ir_idx[i] = &_apic_pin_2_ir_idx[nr_pins];
|
||||
nr_pins += nr_ioapic_entries(i);
|
||||
nr_pins += nr_ioapic_entries[i];
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
||||