diff options
author | Yinghai Lu <yinghai@kernel.org> | 2010-12-07 00:55:17 -0800 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2010-12-09 21:52:04 +0100 |
commit | c0104d38a740b25662c592c71f6907676510289c (patch) | |
tree | 35a8ab1ec51b3614e2a42ca5f373075161c9eeeb /arch/x86/kernel/apic | |
parent | 51ddafcbc735155a7e946b8b6ff19fcd5351375b (diff) | |
download | kernel_samsung_espresso10-c0104d38a740b25662c592c71f6907676510289c.tar.gz kernel_samsung_espresso10-c0104d38a740b25662c592c71f6907676510289c.tar.bz2 kernel_samsung_espresso10-c0104d38a740b25662c592c71f6907676510289c.zip |
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')
-rw-r--r-- | arch/x86/kernel/apic/apic.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/arch/x86/kernel/apic/apic.c b/arch/x86/kernel/apic/apic.c index c48a6451084..c02bf135de9 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) } } +void __init register_lapic_address(unsigned long address) +{ + mp_lapic_addr = address; + + set_fixmap_nocache(FIX_APIC_BASE, address); + if (boot_cpu_physical_apicid == -1U) { + boot_cpu_physical_apicid = read_apic_id(); + apic_version[boot_cpu_physical_apicid] = + GET_APIC_VERSION(apic_read(APIC_LVR)); + } +} + /* * This initializes the IO-APIC and APIC hardware if this is * a UP kernel. |