Release 4.14 arch/x86/include/asm/current.h
/* SPDX-License-Identifier: GPL-2.0 */
#ifndef _ASM_X86_CURRENT_H
#define _ASM_X86_CURRENT_H
#include <linux/compiler.h>
#include <asm/percpu.h>
#ifndef __ASSEMBLY__
struct task_struct;
DECLARE_PER_CPU(struct task_struct *, current_task);
static __always_inline struct task_struct *get_current(void)
{
return this_cpu_read_stable(current_task);
}
#define current get_current()
#endif /* __ASSEMBLY__ */
#endif /* _ASM_X86_CURRENT_H */
Overall Contributors
Person | Tokens | Prop | Commits | CommitProp |
Christoph Lameter | 43 | 78.18% | 1 | 16.67% |
Brian Gerst | 5 | 9.09% | 1 | 16.67% |
H. Peter Anvin | 3 | 5.45% | 1 | 16.67% |
Thomas Gleixner | 2 | 3.64% | 1 | 16.67% |
Greg Kroah-Hartman | 1 | 1.82% | 1 | 16.67% |
Alex Shi | 1 | 1.82% | 1 | 16.67% |
Total | 55 | 100.00% | 6 | 100.00% |
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.