diff options
| author | Vincent Guittot <[email protected]> | 2024-12-02 17:45:56 +0000 |
|---|---|---|
| committer | Peter Zijlstra <[email protected]> | 2024-12-09 10:48:09 +0000 |
| commit | c1f43c342e1f2e32f0620bf2e972e2a9ea0a1e60 (patch) | |
| tree | 0b0388384cdf93667f8f8641928a7d8a83c1b728 /drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | |
| parent | sched/fair: Fix NEXT_BUDDY (diff) | |
| download | kernel-c1f43c342e1f2e32f0620bf2e972e2a9ea0a1e60.tar.gz kernel-c1f43c342e1f2e32f0620bf2e972e2a9ea0a1e60.zip | |
sched/fair: Fix sched_can_stop_tick() for fair tasks
We can't stop the tick of a rq if there are at least 2 tasks enqueued in
the whole hierarchy and not only at the root cfs rq.
rq->cfs.nr_running tracks the number of sched_entity at one level
whereas rq->cfs.h_nr_running tracks all queued tasks in the
hierarchy.
Fixes: 11cc374f4643b ("sched_ext: Simplify scx_can_stop_tick() invocation in sched_can_stop_tick()")
Signed-off-by: Vincent Guittot <[email protected]>
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Reviewed-by: Dietmar Eggemann <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.c')
0 files changed, 0 insertions, 0 deletions
