Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
torvalds
GitHub Repository: torvalds/linux
Path: blob/master/arch/um/include/asm/current.h
26481 views
1
/* SPDX-License-Identifier: GPL-2.0 */
2
#ifndef __ASM_CURRENT_H
3
#define __ASM_CURRENT_H
4
5
#include <linux/compiler.h>
6
#include <linux/threads.h>
7
8
#ifndef __ASSEMBLER__
9
10
struct task_struct;
11
extern struct task_struct *cpu_tasks[NR_CPUS];
12
13
static __always_inline struct task_struct *get_current(void)
14
{
15
return cpu_tasks[0];
16
}
17
18
19
#define current get_current()
20
21
#endif /* __ASSEMBLER__ */
22
23
#endif /* __ASM_CURRENT_H */
24
25