summaryrefslogtreecommitdiffstats
path: root/arch/m68k/kernel/asm-offsets.c
diff options
context:
space:
mode:
authorGreg Ungerer <gerg@uclinux.org>2011-09-02 14:29:34 +1000
committerGreg Ungerer <gerg@uclinux.org>2011-12-24 21:47:56 +1000
commitd25ba98afce7c87afa39f553a3ff8effed87db03 (patch)
treee7158225d753e7dad7b885116672b4485fb3809e /arch/m68k/kernel/asm-offsets.c
parent8d362b0dea1a35bea8d7d281317eb7ccb713edcb (diff)
downloadlinux-d25ba98afce7c87afa39f553a3ff8effed87db03.tar.bz2
m68k: remove thread_info struct from thread struct
Currently on m68k we have a comeplete thread_info structure stored inside of the thread_struct, and we also have it in the initial part of the kernel stack. Mostly the code currently uses the one inside of the thread_struct, only using the "task" pointer from the stack based one. This is wasteful and confusing, we should only have the single instance of thread_info inside the stack page. And this is the norm for all other architectures. This change makes m68k handle thread_info consistently on both MMU enabled and non-MMU setups. Signed-off-by: Greg Ungerer <gerg@uclinux.org>
Diffstat (limited to 'arch/m68k/kernel/asm-offsets.c')
-rw-r--r--arch/m68k/kernel/asm-offsets.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/m68k/kernel/asm-offsets.c b/arch/m68k/kernel/asm-offsets.c
index f6a54e203e8e..a972b00cd77d 100644
--- a/arch/m68k/kernel/asm-offsets.c
+++ b/arch/m68k/kernel/asm-offsets.c
@@ -24,7 +24,7 @@ int main(void)
/* offsets into the task struct */
DEFINE(TASK_THREAD, offsetof(struct task_struct, thread));
DEFINE(TASK_MM, offsetof(struct task_struct, mm));
- DEFINE(TASK_INFO, offsetof(struct task_struct, thread.info));
+ DEFINE(TASK_STACK, offsetof(struct task_struct, stack));
/* offsets into the thread struct */
DEFINE(THREAD_KSP, offsetof(struct thread_struct, ksp));