mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-22 12:14:01 +08:00
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
@ -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…
Reference in New Issue
Block a user