aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh/oprofile
diff options
context:
space:
mode:
Diffstat (limited to 'arch/sh/oprofile')
-rw-r--r--arch/sh/oprofile/common.c4
1 files changed, 2 insertions, 2 deletions
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 @@
21#include <linux/slab.h> 21#include <linux/slab.h>
22#include <asm/processor.h> 22#include <asm/processor.h>
23 23
24#ifdef CONFIG_HW_PERF_EVENTS
25extern void sh_backtrace(struct pt_regs * const regs, unsigned int depth); 24extern void sh_backtrace(struct pt_regs * const regs, unsigned int depth);
26 25
26#ifdef CONFIG_HW_PERF_EVENTS
27/* 27/*
28 * This will need to be reworked when multiple PMUs are supported. 28 * This will need to be reworked when multiple PMUs are supported.
29 */ 29 */
@@ -57,7 +57,7 @@ void __exit oprofile_arch_exit(void)
57#else 57#else
58int __init oprofile_arch_init(struct oprofile_operations *ops) 58int __init oprofile_arch_init(struct oprofile_operations *ops)
59{ 59{
60 pr_info("oprofile: hardware counters not available\n"); 60 ops->backtrace = sh_backtrace;
61 return -ENODEV; 61 return -ENODEV;
62} 62}
63void __exit oprofile_arch_exit(void) {} 63void __exit oprofile_arch_exit(void) {}