aboutsummaryrefslogtreecommitdiff
path: root/include/asm-i386
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-i386')
-rw-r--r--include/asm-i386/current.h7
-rw-r--r--include/asm-i386/pda.h2
2 files changed, 6 insertions, 3 deletions
diff --git a/include/asm-i386/current.h b/include/asm-i386/current.h
index 3cbbecd7901..5252ee0f6d7 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()
diff --git a/include/asm-i386/pda.h b/include/asm-i386/pda.h
index f90fde22566..08a35c478af 100644
--- a/include/asm-i386/pda.h
+++ b/include/asm-i386/pda.h
@@ -7,12 +7,14 @@
#define _I386_PDA_H
#include <linux/stddef.h>
+#include <linux/types.h>
struct i386_pda
{
struct i386_pda *_pda; /* pointer to self */
int cpu_number;
+ struct task_struct *pcurrent; /* current process */
};
extern struct i386_pda *_cpu_pda[];