mirror of
https://github.com/sched-ext/scx.git
synced 2024-11-29 14:10:24 +00:00
Merge pull request #290 from vax-r/Redundant_substract
Avoid redundant substraction in rsigmoid_u64
This commit is contained in:
commit
0ea0a48dfc
@ -461,7 +461,7 @@ static u64 rsigmoid_u64(u64 v, u64 max)
|
||||
* | \
|
||||
* +----+-------->
|
||||
*/
|
||||
return (v > max) ? 0 : max - v;
|
||||
return (v >= max) ? 0 : max - v;
|
||||
}
|
||||
|
||||
static struct task_ctx *try_get_task_ctx(struct task_struct *p)
|
||||
|
Loading…
Reference in New Issue
Block a user