]> xenbits.xensource.com Git - people/sstabellini/xen-unstable.git/.git/commitdiff
xen/x86: ioapic: Rename init_ioapic_mappings() to ioapic_init()
authorJulien Grall <jgrall@amazon.com>
Fri, 27 Mar 2020 18:23:21 +0000 (18:23 +0000)
committerJulien Grall <jgrall@amazon.com>
Fri, 10 Apr 2020 11:23:48 +0000 (12:23 +0100)
The function init_ioapic_mappings() is doing more than initialization
mappings. It is also initialization the number of IRQs/GSIs supported.

So rename the function to ioapic_init().

Signed-off-by: Julien Grall <jgrall@amazon.com>
Reviewed-by: Roger Pau Monné <roger.pau@citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/apic.c
xen/arch/x86/io_apic.c
xen/include/asm-x86/io_apic.h

index cde67cd87e8491ee51b61c3cef0d3428e26d279f..71f4efb2fe7c6badf939ee657a5e8833352436fd 100644 (file)
@@ -978,7 +978,7 @@ __next:
         boot_cpu_physical_apicid = get_apic_id();
     x86_cpu_to_apicid[0] = get_apic_id();
 
-    init_ioapic_mappings();
+    ioapic_init();
 }
 
 /*****************************************************************************
index 9868933287fe00d444afe35390c542c3eb4cb4c7..8233eb44e1fadb7de854a501de7cfef5fca93d1f 100644 (file)
@@ -2537,7 +2537,7 @@ static __init bool bad_ioapic_register(unsigned int idx)
     return false;
 }
 
-void __init init_ioapic_mappings(void)
+void __init ioapic_init(void)
 {
     unsigned long ioapic_phys;
     unsigned int i, idx = FIX_IO_APIC_BASE_0;
index 998905186bbb7c29882172e5e40048aba3820a37..e006b2b8dd608d5d6313ffdba5182fe439e0d535 100644 (file)
@@ -180,7 +180,7 @@ extern int io_apic_get_version (int ioapic);
 extern int io_apic_get_redir_entries (int ioapic);
 extern int io_apic_set_pci_routing (int ioapic, int pin, int irq, int edge_level, int active_high_low);
 
-extern void init_ioapic_mappings(void);
+extern void ioapic_init(void);
 
 extern void ioapic_suspend(void);
 extern void ioapic_resume(void);