switch_to.h 478 B

123456789101112131415161718192021
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * Task switching definitions for the Hexagon architecture
  4. *
  5. * Copyright (c) 2010-2011, The Linux Foundation. All rights reserved.
  6. */
  7. #ifndef _ASM_SWITCH_TO_H
  8. #define _ASM_SWITCH_TO_H
  9. struct thread_struct;
  10. extern struct task_struct *__switch_to(struct task_struct *,
  11. struct task_struct *,
  12. struct task_struct *);
  13. #define switch_to(p, n, r) do {\
  14. r = __switch_to((p), (n), (r));\
  15. } while (0)
  16. #endif /* _ASM_SWITCH_TO_H */