diff options
| author | Peter Zijlstra <[email protected]> | 2024-10-04 12:46:58 +0000 |
|---|---|---|
| committer | Peter Zijlstra <[email protected]> | 2024-11-05 11:55:38 +0000 |
| commit | 7c70cb94d29cd325fabe4a818c18613e3b9919a1 (patch) | |
| tree | 2c4d6b58f7e284778060e2aff70db2b87d7a977c /drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c | |
| parent | sched: Add TIF_NEED_RESCHED_LAZY infrastructure (diff) | |
| download | kernel-7c70cb94d29cd325fabe4a818c18613e3b9919a1.tar.gz kernel-7c70cb94d29cd325fabe4a818c18613e3b9919a1.zip | |
sched: Add Lazy preemption model
Change fair to use resched_curr_lazy(), which, when the lazy
preemption model is selected, will set TIF_NEED_RESCHED_LAZY.
This LAZY bit will be promoted to the full NEED_RESCHED bit on tick.
As such, the average delay between setting LAZY and actually
rescheduling will be TICK_NSEC/2.
In short, Lazy preemption will delay preemption for fair class but
will function as Full preemption for all the other classes, most
notably the realtime (RR/FIFO/DEADLINE) classes.
The goal is to bridge the performance gap with Voluntary, such that we
might eventually remove that option entirely.
Suggested-by: Thomas Gleixner <[email protected]>
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Reviewed-by: Sebastian Andrzej Siewior <[email protected]>
Link: https://lkml.kernel.org/r/[email protected]
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c')
0 files changed, 0 insertions, 0 deletions
