diff options
author | Cyrill Gorcunov <gorcunov@openvz.org> | 2009-08-26 13:13:24 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-08-26 14:26:23 -0400 |
commit | d3a247bfb2c26f5b67367d58af7ad8c2efbbc6c1 (patch) | |
tree | a96567e0934844870718f638616abccb4ac52785 /arch/x86/kernel/apic/apic.c | |
parent | ffc438366c2660a6a811b94ba33229bf217f8254 (diff) |
x86, apic: Slim down stack usage in early_init_lapic_mapping()
As far as I see there is no external poking of mp_lapic_addr in
this procedure which could lead to unpredited changes and
require local storage unit for it. Lets use it plain forward.
Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
Cc: Yinghai Lu <yinghai@kernel.org>
LKML-Reference: <20090826171324.GC4548@lenovo>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/kernel/apic/apic.c')
-rw-r--r-- | arch/x86/kernel/apic/apic.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/arch/x86/kernel/apic/apic.c b/arch/x86/kernel/apic/apic.c index 3fc3a6c428da..159740decc41 100644 --- a/arch/x86/kernel/apic/apic.c +++ b/arch/x86/kernel/apic/apic.c | |||
@@ -1562,8 +1562,6 @@ no_apic: | |||
1562 | #ifdef CONFIG_X86_64 | 1562 | #ifdef CONFIG_X86_64 |
1563 | void __init early_init_lapic_mapping(void) | 1563 | void __init early_init_lapic_mapping(void) |
1564 | { | 1564 | { |
1565 | unsigned long phys_addr; | ||
1566 | |||
1567 | /* | 1565 | /* |
1568 | * If no local APIC can be found then go out | 1566 | * If no local APIC can be found then go out |
1569 | * : it means there is no mpatable and MADT | 1567 | * : it means there is no mpatable and MADT |
@@ -1571,11 +1569,9 @@ void __init early_init_lapic_mapping(void) | |||
1571 | if (!smp_found_config) | 1569 | if (!smp_found_config) |
1572 | return; | 1570 | return; |
1573 | 1571 | ||
1574 | phys_addr = mp_lapic_addr; | 1572 | set_fixmap_nocache(FIX_APIC_BASE, mp_lapic_addr); |
1575 | |||
1576 | set_fixmap_nocache(FIX_APIC_BASE, phys_addr); | ||
1577 | apic_printk(APIC_VERBOSE, "mapped APIC to %16lx (%16lx)\n", | 1573 | apic_printk(APIC_VERBOSE, "mapped APIC to %16lx (%16lx)\n", |
1578 | APIC_BASE, phys_addr); | 1574 | APIC_BASE, mp_lapic_addr); |
1579 | 1575 | ||
1580 | /* | 1576 | /* |
1581 | * Fetch the APIC ID of the BSP in case we have a | 1577 | * Fetch the APIC ID of the BSP in case we have a |