ce730e60cd431f6a623a8137e22c7e8433bc2fa6
[sfrench/cifs-2.6.git] / arch / score / include / asm / switch_to.h
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _ASM_SCORE_SWITCH_TO_H
3 #define _ASM_SCORE_SWITCH_TO_H
4
5 extern void *resume(void *last, void *next, void *next_ti);
6
7 #define switch_to(prev, next, last)                             \
8 do {                                                            \
9         (last) = resume(prev, next, task_thread_info(next));    \
10 } while (0)
11
12 #endif /* _ASM_SCORE_SWITCH_TO_H */