switch_to.h 406 B

123456789101112131415
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef __ALPHA_SWITCH_TO_H
  3. #define __ALPHA_SWITCH_TO_H
  4. struct task_struct;
  5. extern struct task_struct *alpha_switch_to(unsigned long, struct task_struct *);
  6. #define switch_to(P,N,L) \
  7. do { \
  8. (L) = alpha_switch_to(virt_to_phys(&task_thread_info(N)->pcb), (P)); \
  9. check_mmu_context(); \
  10. } while (0)
  11. #endif /* __ALPHA_SWITCH_TO_H */