Commit 1b7b56982fdcd9d85effd76f3928cf5d6eb26155
Committed by
Russell King
1 parent
14fca61a98
Exists in
master
and in
7 other branches
[ARM] 4237/2: oprofile: Always allow backtraces on ARM
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>
Showing 1 changed file with 2 additions and 1 deletions Side-by-side Diff
arch/arm/oprofile/common.c
... | ... | @@ -131,6 +131,8 @@ |
131 | 131 | struct op_arm_model_spec *spec = NULL; |
132 | 132 | int ret = -ENODEV; |
133 | 133 | |
134 | + ops->backtrace = arm_backtrace; | |
135 | + | |
134 | 136 | #ifdef CONFIG_CPU_XSCALE |
135 | 137 | spec = &op_xscale_spec; |
136 | 138 | #endif |
... | ... | @@ -161,7 +163,6 @@ |
161 | 163 | ops->start = op_arm_start; |
162 | 164 | ops->stop = op_arm_stop; |
163 | 165 | ops->cpu_type = op_arm_model->name; |
164 | - ops->backtrace = arm_backtrace; | |
165 | 166 | printk(KERN_INFO "oprofile: using %s\n", spec->name); |
166 | 167 | } |
167 | 168 |