1
0
Fork 0

x86: don't read maxlvt before checking if APIC is mapped

A check for unmapped apic was added before reading maxlvt but the early
read of maxlvt wasn't removed.

Signed-off-by: Chuck Ebbert <cebbert@redhat.com>
Cc: Andi Kleen <ak@suse.de>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: stable@kernel.org
hifive-unleashed-5.1
Chuck Ebbert 2008-05-20 18:18:12 -04:00 committed by Thomas Gleixner
parent 74dc51a3de
commit 2584a82dee
1 changed files with 1 additions and 1 deletions

View File

@ -534,7 +534,7 @@ int setup_profiling_timer(unsigned int multiplier)
*/
void clear_local_APIC(void)
{
int maxlvt = lapic_get_maxlvt();
int maxlvt;
u32 v;
/* APIC hasn't been mapped yet */