static struct op_counter_config ctr[20];
+extern void sh_backtrace(struct pt_regs * const regs, unsigned int depth);
+
static int op_sh_setup(void)
{
/* Pre-compute the values to stuff in the hardware registers. */
struct op_sh_model *lmodel = NULL;
int ret;
+ /*
+ * Always assign the backtrace op. If the counter initialization
+ * fails, we fall back to the timer which will still make use of
+ * this.
+ */
+ ops->backtrace = sh_backtrace;
+
switch (current_cpu_data.type) {
/* SH-4 types */
case CPU_SH7750: