iwlwifi: mvm: fix version check for GEO_TX_POWER_LIMIT support
[linux/fpc-iii.git] / arch / x86 / include / asm / current.h
blob3e204e6140b51fb9567276c9886d21a56aafceed
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>
8 #ifndef __ASSEMBLY__
9 struct task_struct;
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 */