1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _ASM_X86_CURRENT_H
3 #define _ASM_X86_CURRENT_H
5 #include <linux/compiler.h>
6 #include <asm/percpu.h>
11 DECLARE_PER_CPU(struct task_struct
*, current_task
);
13 static __always_inline
struct task_struct
*get_current(void)
15 return this_cpu_read_stable(current_task
);
18 #define current get_current()
20 #endif /* __ASSEMBLY__ */
22 #endif /* _ASM_X86_CURRENT_H */