ARC: __switch_to: move ksp to thread_info from thread_struct
[linux-2.6-microblaze.git] / arch / arc / include / asm / processor.h
index 82ddc92..d606658 100644 (file)
@@ -22,7 +22,6 @@
  * struct thread_info
  */
 struct thread_struct {
-       unsigned long ksp;      /* kernel mode stack pointer */
        unsigned long callee_reg;       /* pointer to callee regs */
        unsigned long fault_address;    /* dbls as brkpt holder as well */
 #ifdef CONFIG_ARC_DSP_SAVE_RESTORE_REGS
@@ -54,7 +53,7 @@ struct task_struct;
  * Where about of Task's sp, fp, blink when it was last seen in kernel mode.
  * Look in process.c for details of kernel stack layout
  */
-#define TSK_K_ESP(tsk)         (tsk->thread.ksp)
+#define TSK_K_ESP(tsk)         (task_thread_info(tsk)->ksp)
 
 #define TSK_K_REG(tsk, off)    (*((unsigned long *)(TSK_K_ESP(tsk) + \
                                        sizeof(struct callee_regs) + off)))