int __init oprofile_arch_init(struct oprofile_operations *ops) { int ret; ret = -ENODEV; #ifdef CONFIG_X86_LOCAL_APIC ret = op_nmi_init(ops); #endif #ifdef CONFIG_X86_IO_APIC if (ret < 0) ret = op_nmi_timer_init(ops); #endif ops->backtrace = x86_backtrace; return ret; }
int __init oprofile_arch_init(struct oprofile_operations *ops) { ops->backtrace = x86_backtrace; return op_nmi_init(ops); }