摘要
针对国产Linux操作系统不能提供高精度时间,也不能实时响应外部事件的问题,设计和实现了时统中断设备管理软件。该软件采用内核模块技术管理设备,利用设备的中断信号调度应用程序,并为应用程序提供高精度的统一时间。为提高外部中断事件的响应时间,时统中断设备管理程序采用tasklet机制管理中断,为不同的中断事件建立不同的管理队列,采用较小粒度的旋转锁以提高代码的并发性。时统中断设备管理程序能为应用程序提供μs级精度的精确时间,中断响应时间为10μs级。经过长时间测试,系统运行稳定可靠,开销小,功能和性能都满足工程需求。
A timing and interrupt device management program is designed and implemented to make up for the inabil- ity of homegrown Linux operating systems to provide high precision time and realtime response to external events. The program uses kernel module technology to manage devices and uses interrupt signals to schedule applications and it provides high precision unified time to applications. To improve the effect of responding time to external inter- rupt events, three methods are applied: using tasklet mechanism to process interrupts; establishing different management queues for different interrupt events; and fine-grained lock is used to improve concurrency. The program provides applications with microsecond precision time and the interrupt response time reaches 10 microsecond level. A long time testing finds that the program is stable and reliable with lower CPU (Central Processing Unit) overhead. Its functionality and performance fully meet customer requirements.
出处
《飞行器测控学报》
CSCD
2014年第5期453-457,共5页
Journal of Spacecraft TT&C Technology
关键词
国产Linux平台
时统中断设备
实时调度
高精度时间
homegrown Linux platform
timing interrupt device
realtime scheduling
high-precision time