• Tejun Heo's avatar
    sched: Revert 498657a4 · 8592e648
    Tejun Heo authored
    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: default avatarTejun Heo <tj@kernel.org>
    Acked-by: default avatarAvi 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: default avatarIngo Molnar <mingo@elte.hu>
    8592e648
preempt.h 3.79 KB