git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[PATCH] i386: Add SMP support on i386 to reservation framework
[pandora-kernel.git]
/
arch
/
i386
/
oprofile
/
nmi_timer_int.c
diff --git
a/arch/i386/oprofile/nmi_timer_int.c
b/arch/i386/oprofile/nmi_timer_int.c
index
930a112
..
a33a73b
100644
(file)
--- 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)
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;