Skip to content
Snippets Groups Projects
Commit aaaa5575 authored by Bin Meng's avatar Bin Meng
Browse files

x86: Remove SMP limitation in lapic_setup()


At present LAPIC is enabled and configured as virtual wire mode
in lapic_setup() only when CONFIG_SMP is on. This limitation is
however not necessary as for uniprocessor this is still needed.

Signed-off-by: default avatarBin Meng <bmeng.cn@gmail.com>
Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
parent 3299be24
No related branches found
No related tags found
No related merge requests found
...@@ -124,7 +124,6 @@ int lapic_remote_read(int apicid, int reg, unsigned long *pvalue) ...@@ -124,7 +124,6 @@ int lapic_remote_read(int apicid, int reg, unsigned long *pvalue)
void lapic_setup(void) void lapic_setup(void)
{ {
#ifdef CONFIG_SMP
/* Only Pentium Pro and later have those MSR stuff */ /* Only Pentium Pro and later have those MSR stuff */
debug("Setting up local apic: "); debug("Setting up local apic: ");
...@@ -154,11 +153,7 @@ void lapic_setup(void) ...@@ -154,11 +153,7 @@ void lapic_setup(void)
LAPIC_DELIVERY_MODE_NMI)); LAPIC_DELIVERY_MODE_NMI));
debug("apic_id: 0x%02lx, ", lapicid()); debug("apic_id: 0x%02lx, ", lapicid());
#else /* !CONFIG_SMP */
/* Only Pentium Pro and later have those MSR stuff */
debug("Disabling local apic: ");
disable_lapic();
#endif /* CONFIG_SMP */
debug("done.\n"); debug("done.\n");
post_code(POST_LAPIC); post_code(POST_LAPIC);
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment