]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] uml: add arch_switch_to for newly forked thread
authorPaolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Fri, 31 Mar 2006 10:30:24 +0000 (02:30 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 31 Mar 2006 20:18:52 +0000 (12:18 -0800)
commit343196b77f870b826c9e1720d035cb3fa43b8acc
tree129a29ab92fba7dc99229c87a38fe8df3ade7b15
parente9192a853cc0b42b6563cba5f00f072f98676a3a
[PATCH] uml: add arch_switch_to for newly forked thread

Newly forked threads have no arch_switch_to_skas() called before their first
run, because when schedule() switches to them they're resumed in the body of
thread_wait() inside fork_handler() rather than in switch_threads() in
switch_to_skas().  Compensate this missing call.

Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Acked-by: Jeff Dike <jdike@addtoit.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/um/kernel/skas/process_kern.c
arch/um/sys-i386/ptrace.c
arch/um/sys-i386/tls.c