[ARM] 4237/2: oprofile: Always allow backtraces on ARM
authorRichard Purdie <rpurdie@rpsys.net>
Tue, 27 Feb 2007 11:09:33 +0000 (12:09 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Fri, 2 Mar 2007 11:58:58 +0000 (11:58 +0000)
Always allow backtrace when using oprofile on ARM, even if a PMU
isn't present.

Signed-off-by: Richard Purdie <rpurdie@rpsys.net>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/oprofile/common.c

index 0a007b931f6368f8dcb8eb3dc4b47d4c5ae17b6d..a9de727c9327aa29eb266e45860a681e72f1d55c 100644 (file)
@@ -131,6 +131,8 @@ int __init oprofile_arch_init(struct oprofile_operations *ops)
        struct op_arm_model_spec *spec = NULL;
        int ret = -ENODEV;
 
+       ops->backtrace = arm_backtrace;
+
 #ifdef CONFIG_CPU_XSCALE
        spec = &op_xscale_spec;
 #endif
@@ -161,7 +163,6 @@ int __init oprofile_arch_init(struct oprofile_operations *ops)
                ops->start = op_arm_start;
                ops->stop = op_arm_stop;
                ops->cpu_type = op_arm_model->name;
-               ops->backtrace = arm_backtrace;
                printk(KERN_INFO "oprofile: using %s\n", spec->name);
        }