Skip to content

Commit

Permalink
[ARM] 4237/2: oprofile: Always allow backtraces on ARM
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Richard Purdie authored and Russell King committed Mar 2, 2007
1 parent 14fca61 commit 1b7b569
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion arch/arm/oprofile/common.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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);
}

Expand Down

0 comments on commit 1b7b569

Please sign in to comment.