Linux内核Timer使用注意事项

在Timer Callback的调用中,不能出现上下文切换(比如mutex_lock之类的),否则会导致系统crash.


[    3.170017] [TC358743]hdmi_input_monitor_process into

[    3.175514] BUG: scheduling while atomic: swapper/1/0/0x00000103
[    3.182956] bad: scheduling from the idle thread!
[   72.010005] INFO: rcu_preempt self-detected stall on CPU
[   72.010005]  1: (1 GPs behind) idle=89b/2/0 @岍?
                                                    [   72.010005]       (t=6000 jiffies)
[   72.040016] INFO: rcu_preempt detected stalls on CPUs/tasks: 00000000
[   72.047299]  0: (1 GPs behind) idle=189/1/0 \}庢
[   72.050003]  1: (1 GPs behind) idle=89b/2/0 \}庢
[   72.050003]  (detected by 2, t=6003 jiffies)
[   72.050003] INFO: Stall ended before state dump start
全部评论

相关推荐

07-01 23:23
郑州大学 Java
否极泰来来来来:牛客迟早有高三的
点赞 评论 收藏
分享
代码飞升:别用口语,后端就写后端,前端就写前端,最后别光后悔
点赞 评论 收藏
分享
不愿透露姓名的神秘牛友
07-25 17:51
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务