sched: Remove finish_arch_switch()
authorPeter Zijlstra <peterz@infradead.org>
Wed, 29 Jul 2015 15:31:47 +0000 (17:31 +0200)
committerIngo Molnar <mingo@kernel.org>
Tue, 4 Aug 2015 07:38:33 +0000 (09:38 +0200)
One less arch hook..

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
kernel/sched/core.c
kernel/sched/sched.h

index 5ca9ae0b7e312f14a72359c47fe4a36399e428d4..b11f6240709bfb7069a1d7d91244e4eb2143dc2d 100644 (file)
@@ -2470,7 +2470,6 @@ static struct rq *finish_task_switch(struct task_struct *prev)
         */
        prev_state = prev->state;
        vtime_task_switch(prev);
-       finish_arch_switch(prev);
        perf_event_task_sched_in(prev, current);
        finish_lock_switch(rq, prev);
        finish_arch_post_lock_switch();
index ab0b05cc3f377579c25bd868df739a431d3bdd47..22ccc5556c42302e34bc500edbee8e5ec316fb35 100644 (file)
@@ -1055,9 +1055,6 @@ static inline int task_on_rq_migrating(struct task_struct *p)
 #ifndef prepare_arch_switch
 # define prepare_arch_switch(next)     do { } while (0)
 #endif
-#ifndef finish_arch_switch
-# define finish_arch_switch(prev)      do { } while (0)
-#endif
 #ifndef finish_arch_post_lock_switch
 # define finish_arch_post_lock_switch()        do { } while (0)
 #endif