Files
OrangePi_CM5/include/asm-x86/current_32.h
T

17 lines
345 B
C
Raw Normal View History

2005-04-16 15:20:36 -07:00
#ifndef _I386_CURRENT_H
#define _I386_CURRENT_H
#include <linux/compiler.h>
#include <asm/percpu.h>
2005-04-16 15:20:36 -07:00
struct task_struct;
DECLARE_PER_CPU(struct task_struct *, current_task);
static __always_inline struct task_struct *get_current(void)
2005-04-16 15:20:36 -07:00
{
return x86_read_percpu(current_task);
2005-04-16 15:20:36 -07:00
}
#define current get_current()
#endif /* !(_I386_CURRENT_H) */