switch_to.h 493 B

123456789101112131415161718192021
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /*
  3. * Copyright (C) 2006 Atmark Techno, Inc.
  4. */
  5. #ifndef _ASM_MICROBLAZE_SWITCH_TO_H
  6. #define _ASM_MICROBLAZE_SWITCH_TO_H
  7. struct task_struct;
  8. struct thread_info;
  9. extern struct task_struct *_switch_to(struct thread_info *prev,
  10. struct thread_info *next);
  11. #define switch_to(prev, next, last) \
  12. do { \
  13. (last) = _switch_to(task_thread_info(prev), \
  14. task_thread_info(next)); \
  15. } while (0)
  16. #endif /* _ASM_MICROBLAZE_SWITCH_TO_H */