uwb: Use kcalloc instead of kzalloc to allocate array
[zen-stable.git] / arch / x86 / include / asm / current.h
blob4d447b732d82df76b4c55d77fde42cd4024c2971
1 #ifndef _ASM_X86_CURRENT_H
2 #define _ASM_X86_CURRENT_H
4 #include <linux/compiler.h>
5 #include <asm/percpu.h>
7 #ifndef __ASSEMBLY__
8 struct task_struct;
10 DECLARE_PER_CPU(struct task_struct *, current_task);
12 static __always_inline struct task_struct *get_current(void)
14 return percpu_read_stable(current_task);
17 #define current get_current()
19 #endif /* __ASSEMBLY__ */
21 #endif /* _ASM_X86_CURRENT_H */