diff options
| author | Changwoo Min <changwoo@igalia.com> | 2025-01-31 16:09:29 +0900 |
|---|---|---|
| committer | Tejun Heo <tj@kernel.org> | 2025-02-02 07:23:18 -1000 |
| commit | f7f6142107f0e0dd4a2b041116461a049ca18cb0 (patch) | |
| tree | 0353dac975cfb1e2ac2ed1810ebe1c61e3738b0c /include/linux/sched | |
| parent | 17103b8504de68958b0ff412ed2ae2e6484fa65f (diff) | |
sched_ext: Add an event, SCX_EV_SELECT_CPU_FALLBACK
Add a core event, SCX_EV_SELECT_CPU_FALLBACK, which represents how many times
ops.select_cpu() returns a CPU that the task can't use.
__scx_add_event() is used since the caller holds an rq lock,
so the preemption has already been disabled.
Signed-off-by: Changwoo Min <changwoo@igalia.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'include/linux/sched')
| -rw-r--r-- | include/linux/sched/ext.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/sched/ext.h b/include/linux/sched/ext.h index 1d70a9867fb1..f7545430a548 100644 --- a/include/linux/sched/ext.h +++ b/include/linux/sched/ext.h @@ -146,6 +146,7 @@ struct sched_ext_entity { u32 weight; s32 sticky_cpu; s32 holding_cpu; + s32 selected_cpu; u32 kf_mask; /* see scx_kf_mask above */ struct task_struct *kf_tasks[2]; /* see SCX_CALL_OP_TASK() */ atomic_long_t ops_state; |
