时间子系统7_高分辨率定时器处理(二)
fn = timer->function;
raw_spin_unlock(&cpu_base->lock);
//执行hrtimer回调函数
restart = fn(timer);
raw_spin_lock(&cpu_base->lock);
//将hrtimer重新入队
if (restart != HRTIMER_NORESTART) {
enqueue_hrtimer(timer, base);
}
//清除其正在执行标志
timer->state &= ~HRTIMER_STATE_CALLBACK;
}