xref: /kernel/linux/linux-5.10/arch/microblaze/include/asm/switch_to.h
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /kernel/linux/linux-5.10/arch/microblaze/include/asm/
18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */
28c2ecf20Sopenharmony_ci/*
38c2ecf20Sopenharmony_ci * Copyright (C) 2006 Atmark Techno, Inc.
48c2ecf20Sopenharmony_ci */
58c2ecf20Sopenharmony_ci
68c2ecf20Sopenharmony_ci#ifndef _ASM_MICROBLAZE_SWITCH_TO_H
78c2ecf20Sopenharmony_ci#define _ASM_MICROBLAZE_SWITCH_TO_H
88c2ecf20Sopenharmony_ci
98c2ecf20Sopenharmony_cistruct task_struct;
108c2ecf20Sopenharmony_cistruct thread_info;
118c2ecf20Sopenharmony_ci
128c2ecf20Sopenharmony_ciextern struct task_struct *_switch_to(struct thread_info *prev,
138c2ecf20Sopenharmony_ci					struct thread_info *next);
148c2ecf20Sopenharmony_ci
158c2ecf20Sopenharmony_ci#define switch_to(prev, next, last)					\
168c2ecf20Sopenharmony_ci	do {								\
178c2ecf20Sopenharmony_ci		(last) = _switch_to(task_thread_info(prev),		\
188c2ecf20Sopenharmony_ci					task_thread_info(next));	\
198c2ecf20Sopenharmony_ci	} while (0)
208c2ecf20Sopenharmony_ci
218c2ecf20Sopenharmony_ci#endif /* _ASM_MICROBLAZE_SWITCH_TO_H */
22

Indexes created Thu Nov 07 10:32:03 CST 2024