blob: 8c7d13fe42e43467ca131ddc5bc7bcbb92899b86 [file] [log] [blame]
b.liue9582032025-04-17 19:18:16 +08001/* 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
8#ifndef _ASM_SWITCH_TO_H
9#define _ASM_SWITCH_TO_H
10
11struct thread_struct;
12
13extern struct task_struct *__switch_to(struct task_struct *,
14 struct task_struct *,
15 struct task_struct *);
16
17#define switch_to(p, n, r) do {\
18 r = __switch_to((p), (n), (r));\
19} while (0)
20
21#endif /* _ASM_SWITCH_TO_H */