]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - arch/sparc/oprofile/init.c
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6
[karo-tx-linux.git] / arch / sparc / oprofile / init.c
index d172f86439b1b8be67b58c0f2ad1b64deb30068e..f97cb8b6ee5fec51b5f20d572357442e340115be 100644 (file)
@@ -21,7 +21,7 @@
 static int profile_timer_exceptions_notify(struct notifier_block *self,
                                           unsigned long val, void *data)
 {
-       struct die_args *args = (struct die_args *)data;
+       struct die_args *args = data;
        int ret = NOTIFY_DONE;
 
        switch (val) {
@@ -57,7 +57,7 @@ static void timer_stop(void)
 
 static int op_nmi_timer_init(struct oprofile_operations *ops)
 {
-       if (!nmi_usable)
+       if (atomic_read(&nmi_active) <= 0)
                return -ENODEV;
 
        ops->start = timer_start;