sparc32: Pass task_struct to schedule_tail() in ret_from_fork
commit790dcd55449886058b77e6c49fa8b3834568a8ed
authorTkhai Kirill <tkhai@yandex.ru>
Thu, 31 Mar 2011 07:52:38 +0000 (31 00:52 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 21 Apr 2011 21:32:40 +0000 (21 14:32 -0700)
tree05f377fa73db67acae0bf608fa261c55615deac0
parent247a80437d061450c5e9f371547aef4e34baec16
sparc32: Pass task_struct to schedule_tail() in ret_from_fork

[ Upstream commit 47c7c97a93a5b8f719093dbf83555090b3b8228b ]

We have to pass task_struct of previous process to function
schedule_tail(). Currently in ret_from_fork previous thread_info
is passed:

switch_to: mov %g6, %g3 /* previous thread_info in g6 */

ret_from_fork: call    schedule_tail
                mov    %g3, %o0 /* previous thread_info is passed */

void schedule_tail(struct task_struct *prev);

Signed-off-by: Tkhai Kirill <tkhai@yandex.ru>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/sparc/kernel/entry.S