提交 5b149bcc 编写于 作者: A Andrew Morton 提交者: Linus Torvalds

[PATCH] schedule_timeout(): improve warning message

Kyle is hitting this warning, and we don't have a clue what it's caused by.
Add the obligatory dump_stack().

Cc: kyle <kylewong@southa.com>
Signed-off-by: NAndrew Morton <akpm@osdl.org>
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 fadfc8e9
...@@ -1344,11 +1344,10 @@ fastcall signed long __sched schedule_timeout(signed long timeout) ...@@ -1344,11 +1344,10 @@ fastcall signed long __sched schedule_timeout(signed long timeout)
* should never happens anyway). You just have the printk() * should never happens anyway). You just have the printk()
* that will tell you if something is gone wrong and where. * that will tell you if something is gone wrong and where.
*/ */
if (timeout < 0) if (timeout < 0) {
{
printk(KERN_ERR "schedule_timeout: wrong timeout " printk(KERN_ERR "schedule_timeout: wrong timeout "
"value %lx from %p\n", timeout, "value %lx\n", timeout);
__builtin_return_address(0)); dump_stack();
current->state = TASK_RUNNING; current->state = TASK_RUNNING;
goto out; goto out;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册