18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */ 28c2ecf20Sopenharmony_ci#ifndef __ALPHA_SWITCH_TO_H 38c2ecf20Sopenharmony_ci#define __ALPHA_SWITCH_TO_H 48c2ecf20Sopenharmony_ci 58c2ecf20Sopenharmony_ci 68c2ecf20Sopenharmony_cistruct task_struct; 78c2ecf20Sopenharmony_ciextern struct task_struct *alpha_switch_to(unsigned long, struct task_struct *); 88c2ecf20Sopenharmony_ci 98c2ecf20Sopenharmony_ci#define switch_to(P,N,L) \ 108c2ecf20Sopenharmony_ci do { \ 118c2ecf20Sopenharmony_ci (L) = alpha_switch_to(virt_to_phys(&task_thread_info(N)->pcb), (P)); \ 128c2ecf20Sopenharmony_ci check_mmu_context(); \ 138c2ecf20Sopenharmony_ci } while (0) 148c2ecf20Sopenharmony_ci 158c2ecf20Sopenharmony_ci#endif /* __ALPHA_SWITCH_TO_H */ 16