xref: /linux/arch/hexagon/include/asm/switch_to.h (revision 2da68a77)
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /*
3  * Task switching definitions for the Hexagon architecture
4  *
5  * Copyright (c) 2010-2011, The Linux Foundation. All rights reserved.
6  */
7 
8 #ifndef _ASM_SWITCH_TO_H
9 #define _ASM_SWITCH_TO_H
10 
11 struct thread_struct;
12 
13 extern struct task_struct *__switch_to(struct task_struct *,
14 	struct task_struct *,
15 	struct task_struct *);
16 
17 #define switch_to(p, n, r) do {\
18 	r = __switch_to((p), (n), (r));\
19 } while (0)
20 
21 #endif /* _ASM_SWITCH_TO_H */
22