Skip to content

Commit

Permalink
Remove lock in cfg task_tick()
Browse files Browse the repository at this point in the history
  • Loading branch information
hky1999 committed Sep 18, 2024
1 parent 415a620 commit e718525
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/cfs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,6 @@ impl<T> BaseScheduler for CFScheduler<T> {
}

fn task_tick(&mut self, current: &Self::SchedItem) -> bool {
let _lock = self.lock.lock();
current.task_tick();
self.min_vruntime.is_none()
|| current.get_vruntime() > self.min_vruntime.as_mut().unwrap().load(Ordering::Acquire)
Expand Down

0 comments on commit e718525

Please sign in to comment.