diff options
author | Paul Mundt <lethal@linux-sh.org> | 2010-10-12 22:43:50 (GMT) |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2010-10-27 08:03:50 (GMT) |
commit | 7c842470f3ec7457585c277b9c5f535e94796f59 (patch) | |
tree | f5b4929297ef4af1d03d927d2dc965e41e401945 /arch/sh | |
parent | d1ba71f7645696020864fe3cea3049befbe50408 (diff) | |
download | linux-fsl-qoriq-7c842470f3ec7457585c277b9c5f535e94796f59.tar.xz |
sh: oprofile: Make sure the backtrace op is available for timer-fallback.
Presently with hardware counter support disabled the backtrace op never
gets initialized. This is a regression over the previous behaviour, so
simply add it back in.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh')
-rw-r--r-- | arch/sh/oprofile/common.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/sh/oprofile/common.c b/arch/sh/oprofile/common.c index 8453314..b4c2d2b 100644 --- a/arch/sh/oprofile/common.c +++ b/arch/sh/oprofile/common.c @@ -21,9 +21,9 @@ #include <linux/slab.h> #include <asm/processor.h> -#ifdef CONFIG_HW_PERF_EVENTS extern void sh_backtrace(struct pt_regs * const regs, unsigned int depth); +#ifdef CONFIG_HW_PERF_EVENTS /* * This will need to be reworked when multiple PMUs are supported. */ @@ -57,7 +57,7 @@ void __exit oprofile_arch_exit(void) #else int __init oprofile_arch_init(struct oprofile_operations *ops) { - pr_info("oprofile: hardware counters not available\n"); + ops->backtrace = sh_backtrace; return -ENODEV; } void __exit oprofile_arch_exit(void) {} |