diff options
| author | Tejun Heo <tj@kernel.org> | 2026-03-13 09:43:23 -1000 |
|---|---|---|
| committer | Tejun Heo <tj@kernel.org> | 2026-03-13 09:43:23 -1000 |
| commit | 3229ac4a5ef5a838e82a784226432c92d3db90a8 (patch) | |
| tree | a20096623e11a5cbe5a8099acd212d4ce3830a3a /kernel/module/livepatch.c | |
| parent | 860683763ebf4662cb72a312279334e02718308f (diff) | |
| download | linux-3229ac4a5ef5a838e82a784226432c92d3db90a8.tar.gz linux-3229ac4a5ef5a838e82a784226432c92d3db90a8.zip | |
sched_ext: Add SCX_OPS_ALWAYS_ENQ_IMMED ops flag
SCX_ENQ_IMMED makes enqueue to local DSQs succeed only if the task can start
running immediately. Otherwise, the task is re-enqueued through ops.enqueue().
This provides tighter control but requires specifying the flag on every
insertion.
Add SCX_OPS_ALWAYS_ENQ_IMMED ops flag. When set, SCX_ENQ_IMMED is
automatically applied to all local DSQ enqueues including through
scx_bpf_dsq_move_to_local().
scx_qmap is updated with -I option to test the feature and -F option for
IMMED stress testing which forces every Nth enqueue to a busy local DSQ.
v2: - Cover scx_bpf_dsq_move_to_local() path (now has enq_flags via ___v2).
- scx_qmap: Remove sched_switch and cpu_release handlers (superseded by
kernel-side wakeup_preempt_scx()). Add -F for IMMED stress testing.
Signed-off-by: Tejun Heo <tj@kernel.org>
Reviewed-by: Andrea Righi <arighi@nvidia.com>
Diffstat (limited to 'kernel/module/livepatch.c')
0 files changed, 0 insertions, 0 deletions
