diff options
Diffstat (limited to 'kernel/sched.c')
-rw-r--r-- | kernel/sched.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/kernel/sched.c b/kernel/sched.c index 155a33da7aa7..e1646b044b69 100644 --- a/kernel/sched.c +++ b/kernel/sched.c | |||
@@ -3348,9 +3348,6 @@ need_resched_nonpreemptible: | |||
3348 | 3348 | ||
3349 | spin_lock_irq(&rq->lock); | 3349 | spin_lock_irq(&rq->lock); |
3350 | 3350 | ||
3351 | if (unlikely(prev->flags & PF_DEAD)) | ||
3352 | prev->state = EXIT_DEAD; | ||
3353 | |||
3354 | switch_count = &prev->nivcsw; | 3351 | switch_count = &prev->nivcsw; |
3355 | if (prev->state && !(preempt_count() & PREEMPT_ACTIVE)) { | 3352 | if (prev->state && !(preempt_count() & PREEMPT_ACTIVE)) { |
3356 | switch_count = &prev->nvcsw; | 3353 | switch_count = &prev->nvcsw; |