/* Generic task switch macro wrapper, based on MN10300 definitions.
 *
 * It should be possible to use these on really simple architectures,
 * but it serves more as a starting point for new ports.
 *
 * Copyright (C) 2007 Red Hat, Inc. All Rights Reserved.
 * Written by David Howells (dhowells@redhat.com)
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public Licence
 * as published by the Free Software Foundation; either version
 * 2 of the Licence, or (at your option) any later version.
 */
#ifndef __ASM_GENERIC_SWITCH_TO_H
#define __ASM_GENERIC_SWITCH_TO_H

#include <linux/thread_info.h>

/*
 * Context switching is now performed out-of-line in switch_to.S
 */
extern struct task_struct *__switch_to(struct task_struct *,
				       struct task_struct *);

#define switch_to(prev, next, last)					\
	do {								\
		((last) = __switch_to((prev), (next)));			\
	} while (0)

#endif /* __ASM_GENERIC_SWITCH_TO_H */
' value='50dcb6cdb70281d76b28d1564f8e076bb08f2c60'/><input type='hidden' name='id2' value='f5b0cba8f23915e92932f11eb063e37d70556a89'/><select name='h' onchange='this.form.submit();'>
<option value='emaclite-cleanup'>emaclite-cleanup</option>
<option value='master' selected='selected'>master</option>
<option value='nds-private-remove'>nds-private-remove</option>
<option value='packet-loop-back'>packet-loop-back</option>
<option value='packet-rx-pump-back'>packet-rx-pump-back</option>
</select> <input type='submit' value='switch'/></form></td></tr>
<tr><td class='sub'>net-next plumbings</td><td class='sub right'>Tobias Klauser</td></tr></table>
<table class='tabs'><tr><td>
<a href='/cgit.cgi/linux/net-next.git/'>summary</a><a href='/cgit.cgi/linux/net-next.git/refs/?id=50dcb6cdb70281d76b28d1564f8e076bb08f2c60'>refs</a><a href='/cgit.cgi/linux/net-next.git/log/tools/testing/selftests/powerpc/ptrace/ptrace-tm-vsx.c'>log</a><a href='/cgit.cgi/linux/net-next.git/tree/tools/testing/selftests/powerpc/ptrace/ptrace-tm-vsx.c?id=50dcb6cdb70281d76b28d1564f8e076bb08f2c60'>tree</a><a href='/cgit.cgi/linux/net-next.git/commit/tools/testing/selftests/powerpc/ptrace/ptrace-tm-vsx.c?id=50dcb6cdb70281d76b28d1564f8e076bb08f2c60'>commit</a><a class='active' href='/cgit.cgi/linux/net-next.git/diff/tools/testing/selftests/powerpc/ptrace/ptrace-tm-vsx.c?id=50dcb6cdb70281d76b28d1564f8e076bb08f2c60&amp;id2=f5b0cba8f23915e92932f11eb063e37d70556a89'>diff</a></td><td class='form'><form class='right' method='get' action='/cgit.cgi/linux/net-next.git/log/tools/testing/selftests/powerpc/ptrace/ptrace-tm-vsx.c'>
<input type='hidden' name='id' value='50dcb6cdb70281d76b28d1564f8e076bb08f2c60'/><input type='hidden' name='id2' value='f5b0cba8f23915e92932f11eb063e37d70556a89'/><select name='qt'>
<option value='grep'>log msg</option>
<option value='author'>author</option>
<option value='committer'>committer</option>
<option value='range'>range</option>
</select>
<input class='txt' type='search' size='10' name='q' value=''/>
<input type='submit' value='search'/>
</form>
</td></tr></table>
<div class='path'>path: <a href='/cgit.cgi/linux/net-next.git/diff/?id=50dcb6cdb70281d76b28d1564f8e076bb08f2c60&amp;id2=f5b0cba8f23915e92932f11eb063e37d70556a89'>root</a>/<a href='/cgit.cgi/linux/net-next.git/diff/tools?id=50dcb6cdb70281d76b28d1564f8e076bb08f2c60&amp;id2=f5b0cba8f23915e92932f11eb063e37d70556a89'>tools</a>/<a href='/cgit.cgi/linux/net-next.git/diff/tools/testing?id=50dcb6cdb70281d76b28d1564f8e076bb08f2c60&amp;id2=f5b0cba8f23915e92932f11eb063e37d70556a89'>testing</a>/<a href='/cgit.cgi/linux/net-next.git/diff/tools/testing/selftests?id=50dcb6cdb70281d76b28d1564f8e076bb08f2c60&amp;id2=f5b0cba8f23915e92932f11eb063e37d70556a89'>selftests</a>/<a href='/cgit.cgi/linux/net-next.git/diff/tools/testing/selftests/powerpc?id=50dcb6cdb70281d76b28d1564f8e076bb08f2c60&amp;id2=f5b0cba8f23915e92932f11eb063e37d70556a89'>powerpc</a>/<a href='/cgit.cgi/linux/net-next.git/diff/tools/testing/selftests/powerpc/ptrace?id=50dcb6cdb70281d76b28d1564f8e076bb08f2c60&amp;id2=f5b0cba8f23915e92932f11eb063e37d70556a89'>ptrace</a>/<a href='/cgit.cgi/linux/net-next.git/diff/tools/testing/selftests/powerpc/ptrace/ptrace-tm-vsx.c?id=50dcb6cdb70281d76b28d1564f8e076bb08f2c60&amp;id2=f5b0cba8f23915e92932f11eb063e37d70556a89'>ptrace-tm-vsx.c</a></div><div class='content'><div class='cgit-panel'><b>diff options</b><form method='get'><input type='hidden' name='id' value='50dcb6cdb70281d76b28d1564f8e076bb08f2c60'/><input type='hidden' name='id2' value='f5b0cba8f23915e92932f11eb063e37d70556a89'/><table><tr><td colspan='2'/></tr><tr><td class='label'>context:</td><td class='ctrl'><select name='context' onchange='this.form.submit();'><option value='1'>1</option><option value='2'>2</option><option value='3' selected='selected'>3</option><option value='4'>4</option><option value='5'>5</option><option value='6'>6</option><option value='7'>7</option><option value='8'>8</option><option value='9'>9</option><option value='10'>10</option><option value='15'>15</option><option value='20'>20</option><option value='25'>25</option><option value='30'>30</option><option value='35'>35</option><option value='40'>40</option></select></td></tr><tr><td class='label'>space:</td><td class='ctrl'><select name='ignorews' onchange='this.form.submit();'><option value='0' selected='selected'>include</option><option value='1'>ignore</option></select></td></tr><tr><td class='label'>mode:</td><td class='ctrl'><select name='dt' onchange='this.form.submit();'><option value='0' selected='selected'>unified</option><option value='1'>ssdiff</option><option value='2'>stat only</option></select></td></tr><tr><td/><td class='ctrl'><noscript><input type='submit' value='reload'/></noscript></td></tr></table></form></div><div class='diffstat-header'><a href='/cgit.cgi/linux/net-next.git/diff/?id=50dcb6cdb70281d76b28d1564f8e076bb08f2c60&amp;id2=f5b0cba8f23915e92932f11eb063e37d70556a89'>Diffstat</a> (limited to 'tools/testing/selftests/powerpc/ptrace/ptrace-tm-vsx.c')</div><table summary='diffstat' class='diffstat'>