]> git.baikalelectronics.ru Git - kernel.git/commit
uml: implement get_wchan
authorJeff Dike <jdike@addtoit.com>
Tue, 5 Feb 2008 06:30:36 +0000 (22:30 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Tue, 5 Feb 2008 17:44:25 +0000 (09:44 -0800)
commit4ac8429e3aa3c2ff15809ac47d93b7ec173867d0
treec7d13b5aeb4994a1c03ec6a5edd723ba06fd94da
parent8c19a3f52f56c8e857affec4397da9870cf7f1d6
uml: implement get_wchan

Implement get_wchan - the algorithm is similar to x86.  It starts with the
stack pointer of the process in question and looks above that for addresses
that are kernel text.  The second one which isn't in the scheduler is the one
that's returned.  The first one is ignored because that will be UML's own
context switching routine.

Signed-off-by: Jeff Dike <jdike@linux.intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/um/kernel/process.c
include/asm-um/processor-generic.h