mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-22 17:33:01 +00:00
652050aec9
Arjan van de Ven <arjan@infradead.org> Mark a number of functions as 'must inline'. The functions affected by this patch need to be inlined because they use knowledge that their arguments are constant so that most of the function optimizes away. At this point this patch does not change behavior, it's for documentation only (and for future patches in the inline series) Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Arjan van de Ven <arjan@infradead.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
16 lines
270 B
C
16 lines
270 B
C
#ifndef _I386_CURRENT_H
|
|
#define _I386_CURRENT_H
|
|
|
|
#include <linux/thread_info.h>
|
|
|
|
struct task_struct;
|
|
|
|
static __always_inline struct task_struct * get_current(void)
|
|
{
|
|
return current_thread_info()->task;
|
|
}
|
|
|
|
#define current get_current()
|
|
|
|
#endif /* !(_I386_CURRENT_H) */
|