mirror of
https://github.com/JakeHillion/scx.git
synced 2024-11-26 19:30:24 +00:00
scx_rusty: Fix typos
Signed-off-by: David Vernet <void@manifault.com>
This commit is contained in:
parent
73c68c6f4a
commit
c574598dc7
@ -34,7 +34,7 @@ struct ravg_data {
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
* Accumulated value of the current period. Input value is 48bits and we
|
* 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;
|
u64 cur;
|
||||||
};
|
};
|
||||||
|
@ -908,7 +908,7 @@ static u32 task_pick_domain(struct task_ctx *taskc, struct task_struct *p,
|
|||||||
if (cpumask_intersects_domain(cpumask, dom)) {
|
if (cpumask_intersects_domain(cpumask, dom)) {
|
||||||
taskc->dom_mask |= 1LLU << 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.
|
* match should be spread across all the domains.
|
||||||
*/
|
*/
|
||||||
if (first_dom == MAX_DOMS)
|
if (first_dom == MAX_DOMS)
|
||||||
|
@ -815,7 +815,7 @@ impl<'a, 'b, 'c> LoadBalancer<'a, 'b, 'c> {
|
|||||||
loop {
|
loop {
|
||||||
let last_pushed = pushed;
|
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();
|
let mut doms_to_pull = BTreeMap::<_, _>::new();
|
||||||
std::mem::swap(&mut self.doms_to_pull, &mut doms_to_pull);
|
std::mem::swap(&mut self.doms_to_pull, &mut doms_to_pull);
|
||||||
let mut pull_doms = doms_to_pull.into_iter().rev().collect::<Vec<(_, _)>>();
|
let mut pull_doms = doms_to_pull.into_iter().rev().collect::<Vec<(_, _)>>();
|
||||||
|
Loading…
Reference in New Issue
Block a user