Merge tag 'trace-printf-v6.13' of git://git.kernel.org/pub/scm/linux/kernel/git/trace...
[drm/drm-misc.git] / arch / arc / include / asm / switch_to.h
blob1f85de8288b17ba72d3f1f88fb9848ded86e8d0f
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /*
3 * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com)
4 */
6 #ifndef _ASM_ARC_SWITCH_TO_H
7 #define _ASM_ARC_SWITCH_TO_H
9 #ifndef __ASSEMBLY__
11 #include <linux/sched.h>
12 #include <asm/dsp-impl.h>
13 #include <asm/fpu.h>
15 struct task_struct *__switch_to(struct task_struct *p, struct task_struct *n);
17 #define switch_to(prev, next, last) \
18 do { \
19 dsp_save_restore(prev, next); \
20 fpu_save_restore(prev, next); \
21 last = __switch_to(prev, next);\
22 mb(); \
23 } while (0)
25 #endif
27 #endif