]> pilppa.org Git - linux-2.6-omap-h63xx.git/blob - include/asm-i386/current.h
chelsio: tabulate the update of the statistic counters
[linux-2.6-omap-h63xx.git] / include / asm-i386 / current.h
1 #ifndef _I386_CURRENT_H
2 #define _I386_CURRENT_H
3
4 #include <asm/pda.h>
5 #include <linux/compiler.h>
6
7 struct task_struct;
8
9 static __always_inline struct task_struct *get_current(void)
10 {
11         return read_pda(pcurrent);
12 }
13  
14 #define current get_current()
15
16 #endif /* !(_I386_CURRENT_H) */