static irqreturn_t timer_interrupt(int irq, void *dev_id)
{
struct clock_event_device *evt = &clockevent_microblaze_timer;
#ifdef CONFIG_HEART_BEAT
heartbeat();
#endif
timer_ack();
evt->event_handler(evt);
return IRQ_HANDLED;
}
中断函数的用户代码实现要在evt->event_handler(evt)里面实现吗,还是直接在 timer_interrupt(int irq, void *dev_id)就可以了? |