diff options
author | Tejun Heo <tj@kernel.org> | 2024-07-08 09:19:14 -1000 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2024-07-08 09:25:35 -1000 |
commit | e98abd22fbcada509f776229af688b7f74d6cdba (patch) | |
tree | a8d165fb77320b479b48da43575b3fb7cf8b5fe7 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 60564acbef5c43eeb11ecadf6efe17ac255a80b1 (diff) |
sched_ext: Account for idle policy when setting p->scx.weight in scx_ops_enable_task()
When initializing p->scx.weight, scx_ops_enable_task() wasn't considering
whether the task is SCHED_IDLE. Update it to use WEIGHT_IDLEPRIO as the
source weight for SCHED_IDLE tasks. This leaves reweight_task_scx() the sole
user of set_task_scx_weight(). Open code it. @weight is going to be provided
by sched core in the future anyway.
v2: Use the newly available @lw->weight to set @p->scx.weight in
reweight_task_scx().
Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: David Vernet <void@manifault.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions