Merge remote-tracking branches 'asoc/topic/mxs', 'asoc/topic/mxs-sgtl5000', 'asoc...
[sfrench/cifs-2.6.git] / arch / cris / include / asm / switch_to.h
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef __ASM_CRIS_SWITCH_TO_H
3 #define __ASM_CRIS_SWITCH_TO_H
4
5 /* the switch_to macro calls resume, an asm function in entry.S which does the actual
6  * task switching.
7  */
8
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)
12
13 #endif /* __ASM_CRIS_SWITCH_TO_H */