iMX6ULL, Linux 4.1.15, how to use EPIT to implement accurate periodic interrupts?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

iMX6ULL, Linux 4.1.15, how to use EPIT to implement accurate periodic interrupts?

跳至解决方案
803 次查看
JanieZee
Contributor I

I want to use EPIT to achieve an interrupt every 156us, but actual tests have found that the interrupt interval is not precisely 156us, with some intervals even reaching the millisecond level.

Why is this happening? What should I do to achieve an accurate 156us periodic interrupt?

Thanks

0 项奖励
回复
1 解答
768 次查看
Zhiming_Liu
NXP TechSupport
NXP TechSupport
0 项奖励
回复
3 回复数
774 次查看
Zhiming_Liu
NXP TechSupport
NXP TechSupport

How do you call the epit function in your test? Have you write EPIT driver by yourself?

0 项奖励
回复
772 次查看
JanieZee
Contributor I

Yes, this is the EPIT driver. Additionally, I have set CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE=y, but the interrupt interval is still not accurate.

0 项奖励
回复
769 次查看
Zhiming_Liu
NXP TechSupport
NXP TechSupport
0 项奖励
回复