Skip to contentSkip to conversation

sched/fair: Remove the redundant critical section

PATCH In review Qi Zheng 2 participants 2 messages Nov 10, 2020 Scheduler

lore
Share & tools
lore

Qi Zheng

author
#0 lore raw

PATCH 1/1 sched/fair: Remove the redundant critical section

Now there is nothing in the critical section, so remove it.

---
 kernel/sched/fair.c | 3 ---
 1 file changed, 3 deletions(-)
kernel/sched/fair.c +0 -3
index 52cacfc62922..06c4f3430e95 100644
@@ -5114,9 +5114,6 @@ static void do_sched_cfs_slack_timer(struct cfs_bandwidth *cfs_b)
 		return;
 
 	distribute_cfs_runtime(cfs_b);
-
-	raw_spin_lock_irqsave(&cfs_b->lock, flags);
-	raw_spin_unlock_irqrestore(&cfs_b->lock, flags);
 }
 
 /*
Signature · 1 line
2.25.1
maintainer
#1 lore raw
Quoted 2 lines · Qi Zheng

Now there is nothing in the critical section, so remove it.

https://lkml.org/lkml/2020/10/30/689

Quoted 23 lines
---
 kernel/sched/fair.c | 3 ---
 1 file changed, 3 deletions(-)
kernel/sched/fair.c +0 -4
index 52cacfc62922..06c4f3430e95 100644
@@ -5114,9 +5114,6 @@ static void do_sched_cfs_slack_timer(struct cfs_bandwidth *cfs_b)
                return;
 
        distribute_cfs_runtime(cfs_b);
-
-       raw_spin_lock_irqsave(&cfs_b->lock, flags);
-       raw_spin_unlock_irqrestore(&cfs_b->lock, flags);
 }
 
 /*
--

2.25.1