/* Get the next period (per cpu) */
hrtimer_set_expires(&ts->sched_timer, tick_init_jiffy_update());
for (; {
hrtimer_forward(&ts->sched_timer, now, tick_period);
hrtimer_start_expires(&ts->sched_timer, //看了下代码,这个地方一定会更改timer的state为active的把。
HRTIMER_MODE_ABS_PINNED);
/* Check, if the timer was already in the past */
if (hrtimer_active(&ts->sched_timer)) //这个timer一定是active的了。为什么还要判断一下。
break;
now = ktime_get();
}作者: blake326 时间: 2012-04-28 09:59
为什么发帖都没人理呢?
好多贴都是十层大海了,伤心了。作者: 瀚海书香 时间: 2012-04-28 10:13 回复 1# blake326