• T
    sched: Revert 498657a4 · 8592e648
    Tejun Heo 提交于
    498657a4 incorrectly assumed
    that preempt wasn't disabled around context_switch() and thus
    was fixing imaginary problem.  It also broke KVM because it
    depended on ->sched_in() to be called with irq enabled so that
    it can do smp calls from there.
    
    Revert the incorrect commit and add comment describing different
    contexts under with the two callbacks are invoked.
    
    Avi: spotted transposed in/out in the added comment.
    Signed-off-by: NTejun Heo <tj@kernel.org>
    Acked-by: NAvi Kivity <avi@redhat.com>
    Cc: peterz@infradead.org
    Cc: efault@gmx.de
    Cc: rusty@rustcorp.com.au
    LKML-Reference: <1259726212-30259-2-git-send-email-tj@kernel.org>
    Signed-off-by: NIngo Molnar <mingo@elte.hu>
    8592e648
sched.c 268.0 KB