diff options
Diffstat (limited to 'arch/i386/oprofile')
-rw-r--r-- | arch/i386/oprofile/nmi_timer_int.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/i386/oprofile/nmi_timer_int.c b/arch/i386/oprofile/nmi_timer_int.c index 930a1127bb30..a33a73bb502d 100644 --- a/arch/i386/oprofile/nmi_timer_int.c +++ b/arch/i386/oprofile/nmi_timer_int.c | |||
@@ -42,9 +42,7 @@ static void timer_stop(void) | |||
42 | 42 | ||
43 | int __init op_nmi_timer_init(struct oprofile_operations * ops) | 43 | int __init op_nmi_timer_init(struct oprofile_operations * ops) |
44 | { | 44 | { |
45 | extern int nmi_active; | 45 | if (atomic_read(&nmi_active) <= 0) |
46 | |||
47 | if (nmi_active <= 0) | ||
48 | return -ENODEV; | 46 | return -ENODEV; |
49 | 47 | ||
50 | ops->start = timer_start; | 48 | ops->start = timer_start; |