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>] &nbs
BUG: scheduling while atomic: swapper/0/0x00000100
最新推荐文章于 2025-10-12 19:08:30 发布
博客分析了一个Linux内核错误:'BUG: scheduling while atomic: swapper/0/0x00000100',指出该错误通常出现在中断处理函数中调用了不应有的休眠函数,如msleep()。错误发生的原因是中断处理期间尝试调度任务,而这是被禁止的。博客通过分析调用栈,将问题定位到CommsIQS316_send函数,并提醒开发者在中断上下文中应避免使用可能导致休眠的操作。

4841

被折叠的 条评论
为什么被折叠?



