18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */ 28c2ecf20Sopenharmony_ci#ifndef __PARISC_SWITCH_TO_H 38c2ecf20Sopenharmony_ci#define __PARISC_SWITCH_TO_H 48c2ecf20Sopenharmony_ci 58c2ecf20Sopenharmony_cistruct task_struct; 68c2ecf20Sopenharmony_ci 78c2ecf20Sopenharmony_ciextern struct task_struct *_switch_to(struct task_struct *, struct task_struct *); 88c2ecf20Sopenharmony_ci 98c2ecf20Sopenharmony_ci#define switch_to(prev, next, last) do { \ 108c2ecf20Sopenharmony_ci (last) = _switch_to(prev, next); \ 118c2ecf20Sopenharmony_ci} while(0) 128c2ecf20Sopenharmony_ci 138c2ecf20Sopenharmony_ci#endif /* __PARISC_SWITCH_TO_H */ 14