[PATCH] i386: Add SMP support on i386 to reservation framework
[pandora-kernel.git] / arch / i386 / oprofile / nmi_timer_int.c
index 930a112..a33a73b 100644 (file)
@@ -42,9 +42,7 @@ static void timer_stop(void)
 
 int __init op_nmi_timer_init(struct oprofile_operations * ops)
 {
-       extern int nmi_active;
-
-       if (nmi_active <= 0)
+       if (atomic_read(&nmi_active) <= 0)
                return -ENODEV;
 
        ops->start = timer_start;