PREEMPT_RT 技术实现:High resolution timers
高分辨率定时器可实现高精度定时调度,摆脱对周期性系统节拍(jiffies)的依赖。
使用高分辨率定时器只需新版 glibc,内核开启后,nanosleep、POSIX 定时器等接口自动升级为高精度模式,无需修改应用代码。
kernel config:
config HIGH_RES_TIMERS
bool "High Resolution Timer Support"
select TICK_ONESHOT
help
This option enables high resolution timer support. If your
hardware is not capable then this option only increases
the size of the kernel image.
本作品采用 CC BY-NC-SA 4.0 协议

浙公网安备 33010602011771号