hrtimer_init(&hr_timer, CLOCK_MONOTONIC, HRTIMER_MODE_REL);
hr_timer.function = &timer_handler;
hrtimer_start(&hr_timer, ktime_set(0, 50000), HRTIMER_MODE_REL);
enum hrtimer_restart hr_handler(struct hrtimer *timer)
{
/*function*/
hrtimer_forward_now(&hr_timer, ktime_set(0,50000));
return HRTIMER_RESTART;
}
阅读(2140) | 评论(0) | 转发(0) |