aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/apic/apic.c
diff options
context:
space:
mode:
authorYinghai Lu <yinghai@kernel.org>2010-12-07 03:55:17 -0500
committerThomas Gleixner <tglx@linutronix.de>2010-12-09 15:52:04 -0500
commitc0104d38a740b25662c592c71f6907676510289c (patch)
tree35a8ab1ec51b3614e2a42ca5f373075161c9eeeb /arch/x86/kernel/apic/apic.c
parent51ddafcbc735155a7e946b8b6ff19fcd5351375b (diff)
x86, apic: Unify identical register_lapic_address() functions
They are the same, move the common function to apic.c to allow further cleanups. 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: <4CFDF675.4060305@kernel.org> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'arch/x86/kernel/apic/apic.c')
-rw-r--r--arch/x86/kernel/apic/apic.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/arch/x86/kernel/apic/apic.c b/arch/x86/kernel/apic/apic.c
index c48a64510844..c02bf135de9d 100644
--- a/arch/x86/kernel/apic/apic.c
+++ b/arch/x86/kernel/apic/apic.c
@@ -1702,6 +1702,18 @@ void __init init_apic_mappings(void)
1702 } 1702 }
1703} 1703}
1704 1704
1705void __init register_lapic_address(unsigned long address)
1706{
1707 mp_lapic_addr = address;
1708
1709 set_fixmap_nocache(FIX_APIC_BASE, address);
1710 if (boot_cpu_physical_apicid == -1U) {
1711 boot_cpu_physical_apicid = read_apic_id();
1712 apic_version[boot_cpu_physical_apicid] =
1713 GET_APIC_VERSION(apic_read(APIC_LVR));
1714 }
1715}
1716
1705/* 1717/*
1706 * This initializes the IO-APIC and APIC hardware if this is 1718 * This initializes the IO-APIC and APIC hardware if this is
1707 * a UP kernel. 1719 * a UP kernel.