Skip to content

Commit

Permalink
perfcounters: fix lapic initialization
Browse files Browse the repository at this point in the history
Fix non-working NMI sampling in certain bootup scenarios.

Signed-off-by: Ingo Molnar <mingo@elte.hu>
  • Loading branch information
Ingo Molnar committed Dec 14, 2008
1 parent 088e285 commit 75f224c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/x86/kernel/cpu/perf_counter.c
Original file line number Diff line number Diff line change
Expand Up @@ -557,10 +557,10 @@ void __init init_hw_perf_counters(void)
printk(KERN_INFO "... bit_width: %d\n", eax.split.bit_width);
printk(KERN_INFO "... mask_length: %d\n", eax.split.mask_length);

perf_counters_initialized = true;

perf_counters_lapic_init(0);
register_die_notifier(&perf_counter_nmi_notifier);

perf_counters_initialized = true;
}

static void x86_perf_counter_read(struct perf_counter *counter)
Expand Down

0 comments on commit 75f224c

Please sign in to comment.