Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2584a82d authored by Chuck Ebbert's avatar Chuck Ebbert Committed by Thomas Gleixner
Browse files

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: default avatarChuck Ebbert <cebbert@redhat.com>
Cc: Andi Kleen <ak@suse.de>
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
Cc: stable@kernel.org
parent 74dc51a3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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 */