页 3 / 12
目 录
1 概要 ..............................................................................................................................................4
2 概念 ..............................................................................................................................................4
2.1 时钟(源) ..................................................................................................................4
2.2 定时器 ..........................................................................................................................4
2.3 Linux 时钟系统............................................................................................................4
3 相关变量、函数的实现 ..............................................................................................................6
3.1 jiffies.............................................................................................................................6
3.2 忙等延时 ......................................................................................................................6
3.3 内核系统时钟/定时器(timer)......................................................................................7
3.4 睡眠延时 ......................................................................................................................7
3.5 内核时间初始化过程 ..................................................................................................7
3.6 xtime.............................................................................................................................9
3.7 do_timer().....................................................................................................................9
4 几个选项 ......................................................................................................................................9
4.1 NO_HZ 和 HIGH_RES_TIMERS.............................................................................10
4.2 时钟事件设备(struct clock_event_device)................................................................10
5 时钟框架 ....................................................................................................................................10
5.1 基于 HZ(arm/mach-ks8695) .................................................................................10
5.2 NO_HZ.......................................................................................................................11
5.3 高精度(略) ............................................................................................................12
5.4 高精度和 NO_HZ 区别联系 .....................................................................................12
6 数学关系 ....................................................................................................................................12
7 参考 ............................................................................................................................................12