Skip to content

Commit

Permalink
[PATCH] schedule_timeout(): improve warning message
Browse files Browse the repository at this point in the history
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: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Andrew Morton authored and Linus Torvalds committed Dec 22, 2006
1 parent fadfc8e commit 5b149bc
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions kernel/timer.c
Original file line number Diff line number Diff line change
Expand Up @@ -1344,11 +1344,10 @@ fastcall signed long __sched schedule_timeout(signed long timeout)
* should never happens anyway). You just have the printk()
* that will tell you if something is gone wrong and where.
*/
if (timeout < 0)
{
if (timeout < 0) {
printk(KERN_ERR "schedule_timeout: wrong timeout "
"value %lx from %p\n", timeout,
__builtin_return_address(0));
"value %lx\n", timeout);
dump_stack();
current->state = TASK_RUNNING;
goto out;
}
Expand Down

0 comments on commit 5b149bc

Please sign in to comment.