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
This commit is contained in:
parent
74dc51a3de
commit
2584a82dee
1 changed files with 1 additions and 1 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Reference in a new issue