static void timer_stop(void) { enable_timer_nmi_watchdog(); unset_nmi_callback(); synchronize_kernel(); } static struct oprofile_operations nmi_timer_ops = { .start = timer_start, .stop = timer_stop, .cpu_type = "timer" };