diff options
author | Yinghai Lu <yinghai@kernel.org> | 2010-12-07 03:55:17 -0500 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2010-12-09 15:52:04 -0500 |
commit | c0104d38a740b25662c592c71f6907676510289c (patch) | |
tree | 35a8ab1ec51b3614e2a42ca5f373075161c9eeeb /arch/x86/kernel/mpparse.c | |
parent | 51ddafcbc735155a7e946b8b6ff19fcd5351375b (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/mpparse.c')
-rw-r--r-- | arch/x86/kernel/mpparse.c | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/arch/x86/kernel/mpparse.c b/arch/x86/kernel/mpparse.c index 9af64d9c4b67..db0b70317949 100644 --- a/arch/x86/kernel/mpparse.c +++ b/arch/x86/kernel/mpparse.c | |||
@@ -275,18 +275,6 @@ static void __init smp_dump_mptable(struct mpc_table *mpc, unsigned char *mpt) | |||
275 | 275 | ||
276 | void __init default_smp_read_mpc_oem(struct mpc_table *mpc) { } | 276 | void __init default_smp_read_mpc_oem(struct mpc_table *mpc) { } |
277 | 277 | ||
278 | static void __init smp_register_lapic_address(unsigned long address) | ||
279 | { | ||
280 | mp_lapic_addr = address; | ||
281 | |||
282 | set_fixmap_nocache(FIX_APIC_BASE, address); | ||
283 | if (boot_cpu_physical_apicid == -1U) { | ||
284 | boot_cpu_physical_apicid = read_apic_id(); | ||
285 | apic_version[boot_cpu_physical_apicid] = | ||
286 | GET_APIC_VERSION(apic_read(APIC_LVR)); | ||
287 | } | ||
288 | } | ||
289 | |||
290 | static int __init smp_read_mpc(struct mpc_table *mpc, unsigned early) | 278 | static int __init smp_read_mpc(struct mpc_table *mpc, unsigned early) |
291 | { | 279 | { |
292 | char str[16]; | 280 | char str[16]; |
@@ -310,7 +298,7 @@ static int __init smp_read_mpc(struct mpc_table *mpc, unsigned early) | |||
310 | 298 | ||
311 | /* Initialize the lapic mapping */ | 299 | /* Initialize the lapic mapping */ |
312 | if (!acpi_lapic) | 300 | if (!acpi_lapic) |
313 | smp_register_lapic_address(mpc->lapic); | 301 | register_lapic_address(mpc->lapic); |
314 | 302 | ||
315 | if (mpc->oemptr) | 303 | if (mpc->oemptr) |
316 | x86_init.mpparse.smp_read_mpc_oem(mpc); | 304 | x86_init.mpparse.smp_read_mpc_oem(mpc); |