]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - arch/arm/oprofile/common.c
[ARM] pxa: Add PXA3 standby code hooked into the IRQ wake scheme
[linux-2.6-omap-h63xx.git] / arch / arm / oprofile / common.c
index f1b24fbd8e67ac41ec925ceff3bf0274f206fd41..0a5cf3a6438be268f792ae0cb1ec9d7c6a66692c 100644 (file)
@@ -96,7 +96,7 @@ static int op_arm_resume(struct sys_device *dev)
 }
 
 static struct sysdev_class oprofile_sysclass = {
-       set_kset_name("oprofile"),
+       .name           = "oprofile",
        .resume         = op_arm_resume,
        .suspend        = op_arm_suspend,
 };
@@ -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
@@ -139,6 +141,10 @@ int __init oprofile_arch_init(struct oprofile_operations *ops)
        spec = &op_armv6_spec;
 #endif
 
+#ifdef CONFIG_OPROFILE_MPCORE
+       spec = &op_mpcore_spec;
+#endif
+
        if (spec) {
                ret = spec->init();
                if (ret < 0)
@@ -157,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);
        }