]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - kernel/sched/sched.h
sched: Remove __ARCH_WANT_INTERRUPTS_ON_CTXSW
[karo-tx-linux.git] / kernel / sched / sched.h
index 09871698e80c26d7a7b9c41739198957916bf574..7a7db09cfabc18af1b35dd2bee57bf60d4103cf4 100644 (file)
@@ -737,11 +737,7 @@ static inline void prepare_lock_switch(struct rq *rq, struct task_struct *next)
         */
        next->on_cpu = 1;
 #endif
-#ifdef __ARCH_WANT_INTERRUPTS_ON_CTXSW
-       raw_spin_unlock_irq(&rq->lock);
-#else
        raw_spin_unlock(&rq->lock);
-#endif
 }
 
 static inline void finish_lock_switch(struct rq *rq, struct task_struct *prev)
@@ -755,9 +751,7 @@ static inline void finish_lock_switch(struct rq *rq, struct task_struct *prev)
        smp_wmb();
        prev->on_cpu = 0;
 #endif
-#ifndef __ARCH_WANT_INTERRUPTS_ON_CTXSW
        local_irq_enable();
-#endif
 }
 #endif /* __ARCH_WANT_UNLOCKED_CTXSW */