aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-i386/current.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-i386/current.h')
-rw-r--r--include/asm-i386/current.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/include/asm-i386/current.h b/include/asm-i386/current.h
index 3cbbecd79016..5252ee0f6d7a 100644
--- a/include/asm-i386/current.h
+++ b/include/asm-i386/current.h
@@ -1,13 +1,14 @@
#ifndef _I386_CURRENT_H
#define _I386_CURRENT_H
-#include <linux/thread_info.h>
+#include <asm/pda.h>
+#include <linux/compiler.h>
struct task_struct;
-static __always_inline struct task_struct * get_current(void)
+static __always_inline struct task_struct *get_current(void)
{
- return current_thread_info()->task;
+ return read_pda(pcurrent);
}
#define current get_current()