x86, sfi: Use register_lapic_address()

register_lapic_address() and mp_sfi_register_lapic_address() are
almost identical. Use the common function.

Signed-off-by: Yinghai Lu <yinghai@kernel.org>
Cc: Suresh Siddha <suresh.b.siddha@intel.com>
Cc: "Eric W. Biederman" <ebiederm@xmission.com>
Cc: Len Brown <lenb@kernel.org>
LKML-Reference: <4CFDF693.6000908@kernel.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>

authored by Yinghai Lu and committed by Thomas Gleixner 53301f36 326a2e6b

+1 -12
+1 -12
arch/x86/platform/sfi/sfi.c
··· 34 34 #ifdef CONFIG_X86_LOCAL_APIC 35 35 static unsigned long sfi_lapic_addr __initdata = APIC_DEFAULT_PHYS_BASE; 36 36 37 - static void __init mp_sfi_register_lapic_address(unsigned long address) 38 - { 39 - mp_lapic_addr = address; 40 - 41 - set_fixmap_nocache(FIX_APIC_BASE, mp_lapic_addr); 42 - if (boot_cpu_physical_apicid == -1U) 43 - boot_cpu_physical_apicid = read_apic_id(); 44 - 45 - pr_info("Boot CPU = %d\n", boot_cpu_physical_apicid); 46 - } 47 - 48 37 /* All CPUs enumerated by SFI must be present and enabled */ 49 38 static void __cpuinit mp_sfi_register_lapic(u8 id) 50 39 { ··· 99 110 int __init sfi_platform_init(void) 100 111 { 101 112 #ifdef CONFIG_X86_LOCAL_APIC 102 - mp_sfi_register_lapic_address(sfi_lapic_addr); 113 + register_lapic_address(sfi_lapic_addr); 103 114 sfi_table_parse(SFI_SIG_CPUS, NULL, NULL, sfi_parse_cpus); 104 115 #endif 105 116 #ifdef CONFIG_X86_IO_APIC