sparc32: Pass task_struct to schedule_tail() in ret_from_fork
authorTkhai Kirill <tkhai@yandex.ru>
Thu, 31 Mar 2011 07:52:38 +0000 (00:52 -0700)
committerBrad Figg <brad.figg@canonical.com>
Wed, 27 Apr 2011 18:42:04 +0000 (11:42 -0700)
commit4d3fadf073ef4f923b558ecac9a6c677c2990968
tree6d58d41abef6404eadc0f0290f804d55efbe0ff5
parentba7c29dd91c47f0c6bce0e8c8ec83c821dd6c16e
sparc32: Pass task_struct to schedule_tail() in ret_from_fork

BugLink: http://bugs.launchpad.net/bugs/769042

[ 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>
Signed-off-by: Leann Ogasawara <leann.ogasawara@canonical.com>
arch/sparc/kernel/entry.S