scx_rusty: Fix typos

Signed-off-by: David Vernet <void@manifault.com>
This commit is contained in:
David Vernet 2023-12-13 14:06:38 -06:00
parent 73c68c6f4a
commit c574598dc7
No known key found for this signature in database
GPG Key ID: 59E4B86965C4F364
3 changed files with 3 additions and 3 deletions

View File

@ -34,7 +34,7 @@ struct ravg_data {
/*
* Accumulated value of the current period. Input value is 48bits and we
* normalize half-life to 16bit, so it should fit in an u64.
* normalize half-life to 16bit, so it should fit in a u64.
*/
u64 cur;
};

View File

@ -908,7 +908,7 @@ static u32 task_pick_domain(struct task_ctx *taskc, struct task_struct *p,
if (cpumask_intersects_domain(cpumask, dom)) {
taskc->dom_mask |= 1LLU << dom;
/*
* AsThe starting point is round-robin'd and the first
* The starting point is round-robin'd and the first
* match should be spread across all the domains.
*/
if (first_dom == MAX_DOMS)

View File

@ -815,7 +815,7 @@ impl<'a, 'b, 'c> LoadBalancer<'a, 'b, 'c> {
loop {
let last_pushed = pushed;
// Pull from the most imbalaned to least.
// Pull from the most imbalanced to least.
let mut doms_to_pull = BTreeMap::<_, _>::new();
std::mem::swap(&mut self.doms_to_pull, &mut doms_to_pull);
let mut pull_doms = doms_to_pull.into_iter().rev().collect::<Vec<(_, _)>>();