From 7c842470f3ec7457585c277b9c5f535e94796f59 Mon Sep 17 00:00:00 2001 From: Paul Mundt Date: Wed, 13 Oct 2010 07:43:50 +0900 Subject: 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 --- arch/sh/oprofile/common.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'arch/sh/oprofile') diff --git a/arch/sh/oprofile/common.c b/arch/sh/oprofile/common.c index 84533142da9b..b4c2d2b946dd 100644 --- a/arch/sh/oprofile/common.c +++ b/arch/sh/oprofile/common.c @@ -21,9 +21,9 @@ #include #include -#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) {} -- cgit v1.2.3