diff options
author | Andrew Morton <akpm@osdl.org> | 2006-12-22 10:10:14 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.osdl.org> | 2006-12-22 17:55:49 +0100 |
commit | 5b149bcc230e4696a1d893504bed38aeb3832314 (patch) | |
tree | f58245b894c8986ca1f8bf03a3bb7fa9b80df528 /kernel | |
parent | [PATCH] gss_spkm3: fix error handling in module init (diff) | |
download | linux-5b149bcc230e4696a1d893504bed38aeb3832314.tar.xz linux-5b149bcc230e4696a1d893504bed38aeb3832314.zip |
[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: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/timer.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/kernel/timer.c b/kernel/timer.c index feddf817baa5..c2a8ccfc2882 100644 --- a/kernel/timer.c +++ b/kernel/timer.c @@ -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; } |