Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1b7b5698 authored by Richard Purdie's avatar Richard Purdie Committed by Russell King
Browse files

[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: default avatarRichard Purdie <rpurdie@rpsys.net>
Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
parent 14fca61a
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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);
	}