1 /* SPDX-License-Identifier: GPL-2.0 */ 2 /* 3 * Copyright (C) 2006 Atmark Techno, Inc. 4 */ 5 6 #ifndef _ASM_MICROBLAZE_SWITCH_TO_H 7 #define _ASM_MICROBLAZE_SWITCH_TO_H 8 9 struct task_struct; 10 struct thread_info; 11 12 extern struct task_struct *_switch_to(struct thread_info *prev, 13 struct thread_info *next); 14 15 #define switch_to(prev, next, last) \ 16 do { \ 17 (last) = _switch_to(task_thread_info(prev), \ 18 task_thread_info(next)); \ 19 } while (0) 20 21 #endif /* _ASM_MICROBLAZE_SWITCH_TO_H */ 22