Merge tag 'for-linus' of git://git.armlinux.org.uk/~rmk/linux-arm
[sfrench/cifs-2.6.git] / arch / arm / include / asm / switch_to.h
index f67ae946a3c61b1c9c2f58310a3f3a1deffed9b2..9372348516ce9b80fa713966943d0bc622e86066 100644 (file)
  */
 extern struct task_struct *__switch_to(struct task_struct *, struct thread_info *, struct thread_info *);
 
-static inline void set_ti_cpu(struct task_struct *p)
-{
-#ifdef CONFIG_THREAD_INFO_IN_TASK
-       /*
-        * The core code no longer maintains the thread_info::cpu field once
-        * CONFIG_THREAD_INFO_IN_TASK is in effect, but we rely on it for
-        * raw_smp_processor_id(), which cannot access struct task_struct*
-        * directly for reasons of circular #inclusion hell.
-        */
-       task_thread_info(p)->cpu = task_cpu(p);
-#endif
-}
-
 #define switch_to(prev,next,last)                                      \
 do {                                                                   \
        __complete_pending_tlbi();                                      \
-       set_ti_cpu(next);                                               \
        if (IS_ENABLED(CONFIG_CURRENT_POINTER_IN_TPIDRURO) || is_smp()) \
                __this_cpu_write(__entry_task, next);                   \
        last = __switch_to(prev,task_thread_info(prev), task_thread_info(next));        \