]> Pileus Git - ~andy/linux/blobdiff - arch/i386/oprofile/nmi_timer_int.c
[PATCH] i386: Add SMP support on i386 to reservation framework
[~andy/linux] / arch / i386 / oprofile / nmi_timer_int.c
index 930a1127bb309e0ff9030384f452e1641d59ea96..a33a73bb502d2f40b153dbe9bbeb00f6f29b5414 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;