xref: /linux/arch/parisc/include/asm/switch_to.h (revision b2441318)
1*b2441318SGreg Kroah-Hartman /* SPDX-License-Identifier: GPL-2.0 */
2527dcdccSDavid Howells #ifndef __PARISC_SWITCH_TO_H
3527dcdccSDavid Howells #define __PARISC_SWITCH_TO_H
4527dcdccSDavid Howells 
5527dcdccSDavid Howells struct task_struct;
6527dcdccSDavid Howells 
7527dcdccSDavid Howells extern struct task_struct *_switch_to(struct task_struct *, struct task_struct *);
8527dcdccSDavid Howells 
9527dcdccSDavid Howells #define switch_to(prev, next, last) do {			\
10527dcdccSDavid Howells 	(last) = _switch_to(prev, next);			\
11527dcdccSDavid Howells } while(0)
12527dcdccSDavid Howells 
13527dcdccSDavid Howells #endif /* __PARISC_SWITCH_TO_H */
14