diff options
-rw-r--r-- | kernel/sched.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/kernel/sched.c b/kernel/sched.c index 6f230596bd0c..c530b84c7f80 100644 --- a/kernel/sched.c +++ b/kernel/sched.c | |||
@@ -4441,12 +4441,8 @@ need_resched_nonpreemptible: | |||
4441 | if (sched_feat(HRTICK)) | 4441 | if (sched_feat(HRTICK)) |
4442 | hrtick_clear(rq); | 4442 | hrtick_clear(rq); |
4443 | 4443 | ||
4444 | /* | 4444 | spin_lock_irq(&rq->lock); |
4445 | * Do the rq-clock update outside the rq lock: | ||
4446 | */ | ||
4447 | local_irq_disable(); | ||
4448 | update_rq_clock(rq); | 4445 | update_rq_clock(rq); |
4449 | spin_lock(&rq->lock); | ||
4450 | clear_tsk_need_resched(prev); | 4446 | clear_tsk_need_resched(prev); |
4451 | 4447 | ||
4452 | if (prev->state && !(preempt_count() & PREEMPT_ACTIVE)) { | 4448 | if (prev->state && !(preempt_count() & PREEMPT_ACTIVE)) { |