Skip to content

Commit

Permalink
x86: don't read maxlvt before checking if APIC is mapped
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Chuck Ebbert authored and Thomas Gleixner committed May 23, 2008
1 parent 74dc51a commit 2584a82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/x86/kernel/apic_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 2584a82

Please sign in to comment.