精明裙子

文章
2
资源
0
加入时间
3年1月10天

linux kernel 时钟系统的前世今生

针对kernel时钟系统初始化我有3个地方的思考:(1)根据上面分析,clocksource在kernel下默认是有default,也就是jiffies,从default_clocksource获取的cycle就是jiffies值,精度只有1。而clockevent没有default,所以在编写timer driver时clockevent实现是必须的,我感觉clocksource倒是可选的,如果没有定义,使用default clocksource,jiffies在timer中断中更新,倒是也可