BUG: scheduling while atomic: swapper/0/0x00000100
Modules linked in: iqs316
Pid: 0, comm: swapper
CPU: 0 Not tainted (2.6.37 #111)
PC is at default_idle+0x48/0x50
LR is at default_idle+0x3c/0x50
pc : [<c00317c0>] lr : [<c00317b4>] psr: 60000013
sp : c0383fc8 ip : 00000000 fp : 00000000
r10: 3001f784 r9 : 41129200 r8 : 3001f7b8
r7 : c0385ba8 r6 : c0020f0c r5 : c03a37cc r4 : c0382000
r3 : 60000013 r2 : f
BUG: scheduling while atomic: swapper/0/0x00000100
最新推荐文章于 2022-12-21 11:12:04 发布
博客分析了一个Linux内核错误:'BUG: scheduling while atomic: swapper/0/0x00000100',指出该错误通常出现在中断处理函数中调用了不应有的休眠函数,如msleep()。错误发生的原因是中断处理期间尝试调度任务,而这是被禁止的。博客通过分析调用栈,将问题定位到CommsIQS316_send函数,并提醒开发者在中断上下文中应避免使用可能导致休眠的操作。
摘要由CSDN通过智能技术生成