perfcounters: fix lapic initialization
authorIngo Molnar <mingo@elte.hu>
Sun, 14 Dec 2008 20:58:46 +0000 (21:58 +0100)
committerIngo Molnar <mingo@elte.hu>
Sun, 14 Dec 2008 21:00:31 +0000 (22:00 +0100)
Fix non-working NMI sampling in certain bootup scenarios.

Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/cpu/perf_counter.c

index 6d30f603b62c3903061fc78e143163c9c20d1fda..8a154bd7ba94ad61bb0ebf4ba9d885bee54b37e3 100644 (file)
@@ -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)
This page took 0.038213 seconds and 5 git commands to generate.