Merge tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost
[cris-mirror.git] / arch / cris / include / asm / switch_to.h
blobdde4acf6e54d893ea30dfb93c02524db62a5b2f3
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef __ASM_CRIS_SWITCH_TO_H
3 #define __ASM_CRIS_SWITCH_TO_H
5 /* the switch_to macro calls resume, an asm function in entry.S which does the actual
6 * task switching.
7 */
9 extern struct task_struct *resume(struct task_struct *prev, struct task_struct *next, int);
10 #define switch_to(prev,next,last) last = resume(prev,next, \
11 (int)&((struct task_struct *)0)->thread)
13 #endif /* __ASM_CRIS_SWITCH_TO_H */