sched/core: Fix stale core_pick and forced idle after SM_IDLE fast path
Subsystems (3)
v2 cover sched/core: Fix stale core_pick and forced idle after SM_IDLE fast path
Under core scheduling, a core-wide selection can leave a pick for an idle sibling in rq->core_pick and force the other sibling idle. If the picked task is migrated away before the idle sibling schedules, and it was that sibling's only task, the SM_IDLE fast path (v6.12+) sends the sibling back to idle without a pick. The core then stays forced idle with nothing running, and the forced idle accounting keeps using the stale pointer, also after the task and its cgroup are freed.
Patch 1 clears rq->core_pick when the picked task is dequeued. Patch 2 stops idle CPUs from taking the SM_IDLE fast path while the core is forced idle. Patch 3 adds a selftest for the stuck forced idle and the use-after-free.
Changes in v2:
- Patch 2: drop the rq->core_pick check. With patch 1 a pending pick is always queued on its rq, so an empty runqueue has none (Peter). Reword the subject and changelog accordingly.
- Patch 3: new, a selftest derived from the reproducer (Peter). It checks for stuck forced idle and, with cgroup v2 and schedstats, frees each stalled task with its cgroup to catch the use-after-free.
- v1: https://lore.kernel.org/lkml/[email protected]/
Testing, on tip sched/core d7e670601af6, schedstats=enable:
- KVM guest, 2 cores x 2 threads, idle=halt, the v1 reproducer. Without the series, both boots oopsed in __cgroup_account_cputime_field() from __sched_core_account_forceidle(). With v2, 6 boots of 240 s (972562 attempts) showed no stuck forced idle and no oops; the no-migrate control (194596 attempts) was clean as well.
- cs_forceidle_test through run_kselftest.sh in the same guest, 30 s runs. Without the series, all 11 runs crashed in __cgroup_account_cputime_field() 0.4-2.2 s into the test (with KASAN, 2 of 2 first reported a slab-use-after-free in __account_forceidle_time()); with -n, which skips freeing the stalled tasks, 72, 59 and 67 stalls in about 20000 attempts each. With v2, 10 of 10 runs passed with 0 stalls and nothing in dmesg (2 with KASAN, 2 booted without schedstats). With patch 1 alone, 42, 43 and 34 stalls and no crash; with patch 2 alone, 0 stalls.
- Builds with SCHED_CORE on and off, SCHEDSTATS on and off, SCHED_CLASS_EXT, PREEMPT_RT, tinyconfig and allnoconfig; W=1 clean in kernel/sched/, and each patch builds on its own.
Ibrahim Elshahed (3):
sched/core: Clear a stale rq->core_pick after dequeue sched/core: Don't take the idle fast path while the core is forced
idle
selftests/sched: Add a test for stuck forced idle under core
scheduling
kernel/sched/core.c | 28 +- tools/testing/selftests/sched/.gitignore | 1 + tools/testing/selftests/sched/Makefile | 1 + tools/testing/selftests/sched/config | 2 +- .../selftests/sched/cs_forceidle_test.c | 471 ++++++++++++++++++ 5 files changed, 500 insertions(+), 3 deletions(-) create mode 100644 tools/testing/selftests/sched/cs_forceidle_test.c
base-commit: d7e670601af6c564ccf6d3b2ddf70ee4f41a6d1c
Signature · 1 line
2.47.3
PATCH v2 1/3 sched/core: Clear a stale rq->core_pick after dequeue
A core-wide selection leaves the task chosen for each sibling in that sibling's rq->core_pick until pick_next_task() on the sibling consumes it. If the task is dequeued before the sibling consumes it, for example migrated away, the pointer stays until the sibling's next pick_next_task() overwrites it. Until then __sched_core_account_forceidle() keeps charging forced idle time to a task that no longer runs there and, with schedstats enabled, to its cgroup, even after the task has exited.
Clear rq->core_pick and rq->core_dl_server in sched_core_dequeue() once the pending pick is dequeued, and don't wait for pick_next_task() to overwrite them.
--- kernel/sched/core.c | 9 +++++++++ 1 file changed, 9 insertions(+)
kernel/sched/core.c +9 -0
@@ -328,6 +328,15 @@ void sched_core_dequeue(struct rq *rq, struct task_struct *p, int flags)RB_CLEAR_NODE (&p->core_node); } +/* +* @p left this rq, so it can no longer be the pick a sibling made. +* This also avoids forced idle accounting charging it once it is gone. +*/ +if (rq->core_pick == p) { + rq->core_pick =NULL ; + rq->core_dl_server =NULL ; + } +/* * Migrating the last task off the cpu, with the cpu in forced idle * state. Reschedule to create an accounting edge for forced idle,
Signature · 1 line
2.47.3
[tip: sched/urgent] sched/core: Clear a stale rq->core_pick after dequeue
The following commit has been merged into the sched/urgent branch of tip:
The following commit has been merged into the sched/urgent branch of tip:
Commit-ID: bf437249e07b84fcee0fe192cc8591592d336355 Gitweb: https://git.kernel.org/tip/bf437249e07b84fcee0fe192cc8591592d336355 Author: Ibrahim Elshahed <[email protected]> AuthorDate: Fri, 20 Nov 2026 10:58:20 Committer: Ingo Molnar <[email protected]> CommitterDate: Sun, 22 Nov 2026 16:16:44 +01:00
sched/core: Clear a stale rq->core_pick after dequeue
A core-wide selection leaves the task chosen for each sibling in that sibling's rq->core_pick until pick_next_task() on the sibling consumes it. If the task is dequeued before the sibling consumes it, for example migrated away, the pointer stays until the sibling's next pick_next_task() overwrites it. Until then __sched_core_account_forceidle() keeps charging forced idle time to a task that no longer runs there and, with schedstats enabled, to its cgroup, even after the task has exited.
Clear rq->core_pick and rq->core_dl_server in sched_core_dequeue() once the pending pick is dequeued, and don't wait for pick_next_task() to overwrite them.
--- kernel/sched/core.c | 9 +++++++++ 1 file changed, 9 insertions(+)
kernel/sched/core.c +9 -0
@@ -329,6 +329,15 @@ void sched_core_dequeue(struct rq *rq, struct task_struct *p, int flags) }/* +* @p left this rq, so it can no longer be the pick a sibling made. +* This also avoids forced idle accounting charging it once it is gone. +*/ +if (rq->core_pick == p) { + rq->core_pick =NULL ; + rq->core_dl_server =NULL ; + } + +/* * Migrating the last task off the cpu, with the cpu in forced idle * state. Reschedule to create an accounting edge for forced idle, * and re-examine whether the core is still in forced idle state.
[tip: sched/urgent] sched/core: Clear a stale rq->core_pick after dequeue
In reply to Ibrahim ElshahedThe following commit has been merged into the sched/urgent branch of tip:
The following commit has been merged into the sched/urgent branch of tip:
Commit-ID: b704f052aa943903be7140fa8bd805b1de9d5afb Gitweb: https://git.kernel.org/tip/b704f052aa943903be7140fa8bd805b1de9d5afb Author: Ibrahim Elshahed <[email protected]> AuthorDate: Fri, 20 Nov 2026 10:58:20 Committer: Ingo Molnar <[email protected]> CommitterDate: Mon, 23 Nov 2026 10:38:26 +01:00
sched/core: Clear a stale rq->core_pick after dequeue
A core-wide selection leaves the task chosen for each sibling in that sibling's rq->core_pick until pick_next_task() on the sibling consumes it. If the task is dequeued before the sibling consumes it, for example migrated away, the pointer stays until the sibling's next pick_next_task() overwrites it. Until then __sched_core_account_forceidle() keeps charging forced idle time to a task that no longer runs there and, with schedstats enabled, to its cgroup, even after the task has exited.
Clear rq->core_pick and rq->core_dl_server in sched_core_dequeue() once the pending pick is dequeued, and don't wait for pick_next_task() to overwrite them.
--- kernel/sched/core.c | 9 +++++++++ 1 file changed, 9 insertions(+)
kernel/sched/core.c +9 -0
@@ -329,6 +329,15 @@ void sched_core_dequeue(struct rq *rq, struct task_struct *p, int flags) }/* +* @p left this rq, so it can no longer be the pick a sibling made. +* This also avoids forced idle accounting charging it once it is gone. +*/ +if (rq->core_pick == p) { + rq->core_pick =NULL ; + rq->core_dl_server =NULL ; + } + +/* * Migrating the last task off the cpu, with the cpu in forced idle * state. Reschedule to create an accounting edge for forced idle, * and re-examine whether the core is still in forced idle state.
PATCH v2 2/3 sched/core: Don't take the idle fast path while the core is forced idle
In reply to Ibrahim ElshahedSince v6.12, with commit 3dcac251b066 ("sched/core: Introduce SM_IDLE and an idle re-entry fast-path in __schedule()"), an idle CPU with an empty runqueue skips pick_next_task() when it is rescheduled. Under core scheduling that pick also ends or re-examines the core's forced idle.
A core-wide selection chooses a task for an idle sibling and reschedules it. If the chosen task is migrated away before the sibling schedules and it was the sibling's only task, the sibling goes back to idle through the fast path. When that selection also forced the other sibling idle, because its runnable tasks did not match the chosen task's cookie, the core stays forced idle with nothing running on it, and two things go wrong:
- Without the previous patch, the idle sibling's rq->core_pick keeps pointing at the migrated task, and with schedstats enabled the forced idle accounting keeps writing through it, even after the task and its cgroup are freed:
BUG: unable to handle page fault for address: ffff8d6b205f7018 #PF: supervisor write access in kernel mode #PF: error_code(0x0002) - not-present page RIP: 0010:__cgroup_account_cputime_field+0x3c/0x70 Call Trace: __sched_core_account_forceidle+0xd8/0x140 __schedule+0x1390/0x18d0 schedule_idle+0x1a/0x30 cpu_startup_entry+0x29/0x30 start_secondary+0x11e/0x140
- The forced-idle sibling keeps waiting with runnable tasks until some unrelated event reschedules the core. Likewise, when the forced-idle CPU itself loses its last task, the reschedule that sched_core_dequeue() sends to end the forced idle also ends in the fast path.
Take the SM_IDLE fast path only when the core is not forced idle. A pending rq->core_pick needs no check of its own: the previous patch clears it when the picked task is dequeued, so a CPU with an empty runqueue has none.
--- kernel/sched/core.c | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-)
kernel/sched/core.c +17 -2
@@ -347,6 +347,15 @@ void sched_core_dequeue(struct rq *rq, struct task_struct *p, int flags)resched_curr (rq); } +/* +* An idle CPU with an empty runqueue must still call pick_next_task() while +* the core is forced idle. Only that pick ends or re-examines the forced idle. +*/ +static inline bool sched_core_idle_needs_pick (struct rq *rq) +{ +return sched_core_enabled (rq) && rq->core->core_forceidle_count; +} +static int sched_task_is_throttled (struct task_struct *p,int cpu) {if (p->sched_class->task_is_throttled)
@@ -550,6 +559,7 @@ void sched_core_put(void)static inline void sched_core_enqueue (struct rq *rq,struct task_struct *p) { }static inline void sched_core_dequeue (struct rq *rq,struct task_struct *p,int flags) { } +static inline bool sched_core_idle_needs_pick (struct rq *rq) {return false; }#endif /* !CONFIG_SCHED_CORE */
@@ -7285,8 +7295,13 @@ static void __sched notrace __schedule(int sched_mode)*/ prev_state =READ_ONCE (prev->__state);if (sched_mode ==SM_IDLE ) { -/* SCX must consult the BPF scheduler to tell if rq is empty */ -if (!rq->nr_running && !scx_enabled ()) { +/* +* SCX must consult the BPF scheduler to tell if rq is empty, +* and core scheduling may need pick_next_task() to end forced +* idle. +*/ +if (!rq->nr_running && !scx_enabled () && + !sched_core_idle_needs_pick (rq)) { next = prev; rq->next_class = &idle_sched_class; goto picked;
Signature · 1 line
2.47.3
[tip: sched/urgent] sched/core: Don't take the idle fast path while the core is forced idle
The following commit has been merged into the sched/urgent branch of tip:
The following commit has been merged into the sched/urgent branch of tip:
Commit-ID: cf2126c9b989d11d42e95e5f5c7fdcfe43914eae Gitweb: https://git.kernel.org/tip/cf2126c9b989d11d42e95e5f5c7fdcfe43914eae Author: Ibrahim Elshahed <[email protected]> AuthorDate: Fri, 20 Nov 2026 10:58:21 Committer: Ingo Molnar <[email protected]> CommitterDate: Sun, 22 Nov 2026 16:16:44 +01:00
sched/core: Don't take the idle fast path while the core is forced idle
Since v6.12, with commit 3dcac251b066 ("sched/core: Introduce SM_IDLE and an idle re-entry fast-path in __schedule()"), an idle CPU with an empty runqueue skips pick_next_task() when it is rescheduled. Under core scheduling that pick also ends or re-examines the core's forced idle.
A core-wide selection chooses a task for an idle sibling and reschedules it. If the chosen task is migrated away before the sibling schedules and it was the sibling's only task, the sibling goes back to idle through the fast path. When that selection also forced the other sibling idle, because its runnable tasks did not match the chosen task's cookie, the core stays forced idle with nothing running on it, and two things go wrong:
- Without the previous patch, the idle sibling's rq->core_pick keeps pointing at the migrated task, and with schedstats enabled the forced idle accounting keeps writing through it, even after the task and its cgroup are freed:
BUG: unable to handle page fault for address: ffff8d6b205f7018 #PF: supervisor write access in kernel mode #PF: error_code(0x0002) - not-present page RIP: 0010:__cgroup_account_cputime_field+0x3c/0x70 Call Trace: __sched_core_account_forceidle+0xd8/0x140 __schedule+0x1390/0x18d0 schedule_idle+0x1a/0x30 cpu_startup_entry+0x29/0x30 start_secondary+0x11e/0x140
- The forced-idle sibling keeps waiting with runnable tasks until some unrelated event reschedules the core. Likewise, when the forced-idle CPU itself loses its last task, the reschedule that sched_core_dequeue() sends to end the forced idle also ends in the fast path.
Take the SM_IDLE fast path only when the core is not forced idle. A pending rq->core_pick needs no check of its own: the previous patch clears it when the picked task is dequeued, so a CPU with an empty runqueue has none.
--- kernel/sched/core.c | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-)
kernel/sched/core.c +17 -2
@@ -347,6 +347,15 @@ void sched_core_dequeue(struct rq *rq, struct task_struct *p, int flags)resched_curr (rq); } +/* +* An idle CPU with an empty runqueue must still call pick_next_task() while +* the core is forced idle. Only that pick ends or re-examines the forced idle. +*/ +static inline bool sched_core_idle_needs_pick (struct rq *rq) +{ +return sched_core_enabled (rq) && rq->core->core_forceidle_count; +} +static int sched_task_is_throttled (struct task_struct *p,int cpu) {if (p->sched_class->task_is_throttled)
@@ -550,6 +559,7 @@ void sched_core_put(void)static inline void sched_core_enqueue (struct rq *rq,struct task_struct *p) { }static inline void sched_core_dequeue (struct rq *rq,struct task_struct *p,int flags) { } +static inline bool sched_core_idle_needs_pick (struct rq *rq) {return false; }#endif /* !CONFIG_SCHED_CORE */
@@ -7290,8 +7300,13 @@ static void __sched notrace __schedule(int sched_mode)*/ prev_state =READ_ONCE (prev->__state);if (sched_mode ==SM_IDLE ) { -/* SCX must consult the BPF scheduler to tell if rq is empty */ -if (!rq->nr_running && !scx_enabled ()) { +/* +* SCX must consult the BPF scheduler to tell if rq is empty, +* and core scheduling may need pick_next_task() to end forced +* idle. +*/ +if (!rq->nr_running && !scx_enabled () && + !sched_core_idle_needs_pick (rq)) { next = prev; rq->next_class = &idle_sched_class; goto picked;
[tip: sched/urgent] sched/core: Don't take the idle fast path while the core is forced idle
In reply to Ibrahim ElshahedThe following commit has been merged into the sched/urgent branch of tip:
The following commit has been merged into the sched/urgent branch of tip:
Commit-ID: 029c90c449bfe0e200cdeb24c5b1a775764c0006 Gitweb: https://git.kernel.org/tip/029c90c449bfe0e200cdeb24c5b1a775764c0006 Author: Ibrahim Elshahed <[email protected]> AuthorDate: Fri, 20 Nov 2026 10:58:21 Committer: Ingo Molnar <[email protected]> CommitterDate: Mon, 23 Nov 2026 10:38:26 +01:00
sched/core: Don't take the idle fast path while the core is forced idle
Since v6.12, with commit 3dcac251b066 ("sched/core: Introduce SM_IDLE and an idle re-entry fast-path in __schedule()"), an idle CPU with an empty runqueue skips pick_next_task() when it is rescheduled. Under core scheduling that pick also ends or re-examines the core's forced idle.
A core-wide selection chooses a task for an idle sibling and reschedules it. If the chosen task is migrated away before the sibling schedules and it was the sibling's only task, the sibling goes back to idle through the fast path. When that selection also forced the other sibling idle, because its runnable tasks did not match the chosen task's cookie, the core stays forced idle with nothing running on it, and two things go wrong:
- Without the previous patch, the idle sibling's rq->core_pick keeps pointing at the migrated task, and with schedstats enabled the forced idle accounting keeps writing through it, even after the task and its cgroup are freed:
BUG: unable to handle page fault for address: ffff8d6b205f7018 #PF: supervisor write access in kernel mode #PF: error_code(0x0002) - not-present page RIP: 0010:__cgroup_account_cputime_field+0x3c/0x70 Call Trace: __sched_core_account_forceidle+0xd8/0x140 __schedule+0x1390/0x18d0 schedule_idle+0x1a/0x30 cpu_startup_entry+0x29/0x30 start_secondary+0x11e/0x140
- The forced-idle sibling keeps waiting with runnable tasks until some unrelated event reschedules the core. Likewise, when the forced-idle CPU itself loses its last task, the reschedule that sched_core_dequeue() sends to end the forced idle also ends in the fast path.
Take the SM_IDLE fast path only when the core is not forced idle. A pending rq->core_pick needs no check of its own: the previous patch clears it when the picked task is dequeued, so a CPU with an empty runqueue has none.
--- kernel/sched/core.c | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-)
kernel/sched/core.c +17 -2
@@ -347,6 +347,15 @@ void sched_core_dequeue(struct rq *rq, struct task_struct *p, int flags)resched_curr (rq); } +/* +* An idle CPU with an empty runqueue must still call pick_next_task() while +* the core is forced idle. Only that pick ends or re-examines the forced idle. +*/ +static inline bool sched_core_idle_needs_pick (struct rq *rq) +{ +return sched_core_enabled (rq) && rq->core->core_forceidle_count; +} +static int sched_task_is_throttled (struct task_struct *p,int cpu) {if (p->sched_class->task_is_throttled)
@@ -550,6 +559,7 @@ void sched_core_put(void)static inline void sched_core_enqueue (struct rq *rq,struct task_struct *p) { }static inline void sched_core_dequeue (struct rq *rq,struct task_struct *p,int flags) { } +static inline bool sched_core_idle_needs_pick (struct rq *rq) {return false; }#endif /* !CONFIG_SCHED_CORE */
@@ -7290,8 +7300,13 @@ static void __sched notrace __schedule(int sched_mode)*/ prev_state =READ_ONCE (prev->__state);if (sched_mode ==SM_IDLE ) { -/* SCX must consult the BPF scheduler to tell if rq is empty */ -if (!rq->nr_running && !scx_enabled ()) { +/* +* SCX must consult the BPF scheduler to tell if rq is empty, +* and core scheduling may need pick_next_task() to end forced +* idle. +*/ +if (!rq->nr_running && !scx_enabled () && + !sched_core_idle_needs_pick (rq)) { next = prev; rq->next_class = &idle_sched_class; goto picked;
PATCH v2 3/3 selftests/sched: Add a test for stuck forced idle under core scheduling
In reply to Ibrahim ElshahedAdd cs_forceidle_test, which checks that a core does not stay forced idle after the task that a core-wide selection picked for an idle SMT sibling is migrated away before the sibling schedules, and that the pick left behind is not used once that task is freed.
On one SMT core, a task with its own cookie yields in a loop on one sibling. Each attempt wakes a SCHED_FIFO task with another cookie on the other sibling, so the core-wide selection picks it there and forces the first sibling idle, and migrates it to a CPU of another core 0-50 us later. The yielding task must make progress again within 20 ms; an attempt where it does not counts as a stall, and the first test fails if there is any.
The woken task also runs in its own cgroup. After a stall the test kills it, removes its cgroup, waits 100 ms for RCU to free both, and runs a short-lived task on the sibling. A kernel that kept the freed task in the sibling's rq->core_pick then charges forced idle time to it and its cgroup, and crashes in __cgroup_account_cputime_field() or reports a use-after-free with KASAN. Forced idle time is only accounted with schedstats, so the test turns them on for its duration if they are off. This second test is on by default and is skipped with -n, without cgroup v2, or without schedstats.
The test runs for 30 s by default, -t sets the duration. It is skipped when not run as root, without an SMT core and two other online CPUs, or when core scheduling is unavailable. Also list CONFIG_SCHED_CORE in the config fragment, which cs_prctl_test needs as well.
--- tools/testing/selftests/sched/.gitignore | 1 + tools/testing/selftests/sched/Makefile | 1 + tools/testing/selftests/sched/config | 2 +- .../selftests/sched/cs_forceidle_test.c | 471 ++++++++++++++++++ 4 files changed, 474 insertions(+), 1 deletion(-) create mode 100644 tools/testing/selftests/sched/cs_forceidle_test.c
tools/testing/selftests/sched/.gitignore +1 -0
@@ -1 +1,2 @@ cs_prctl_test +cs_forceidle_test
tools/testing/selftests/sched/Makefile +1 -0
@@ -10,5 +10,6 @@ LDLIBS += -lpthread TEST_GEN_FILES := cs_prctl_test TEST_PROGS := cs_prctl_test +TEST_GEN_PROGS := cs_forceidle_test include ../lib.mk
tools/testing/selftests/sched/config +1 -1
@@ -1 +1 @@ -# empty +CONFIG_SCHED_CORE=y
tools/testing/selftests/sched/cs_forceidle_test.c new file +471 -0
471 lines not on this page · raw message
Signature · 1 line
2.47.3
[tip: sched/core] selftests/sched: Add a test for stuck forced idle under core scheduling
The following commit has been merged into the sched/core branch of tip:
The following commit has been merged into the sched/core branch of tip:
Commit-ID: c47af85667065c6dd5b79564203c2d29948ef60e Gitweb: https://git.kernel.org/tip/c47af85667065c6dd5b79564203c2d29948ef60e Author: Ibrahim Elshahed <[email protected]> AuthorDate: Fri, 20 Nov 2026 10:58:22 Committer: Ingo Molnar <[email protected]> CommitterDate: Mon, 23 Nov 2026 10:45:55 +01:00
selftests/sched: Add a test for stuck forced idle under core scheduling
Add cs_forceidle_test, which checks that a core does not stay forced idle after the task that a core-wide selection picked for an idle SMT sibling is migrated away before the sibling schedules, and that the pick left behind is not used once that task is freed.
On one SMT core, a task with its own cookie yields in a loop on one sibling. Each attempt wakes a SCHED_FIFO task with another cookie on the other sibling, so the core-wide selection picks it there and forces the first sibling idle, and migrates it to a CPU of another core 0-50 us later. The yielding task must make progress again within 20 ms; an attempt where it does not counts as a stall, and the first test fails if there is any.
The woken task also runs in its own cgroup. After a stall the test kills it, removes its cgroup, waits 100 ms for RCU to free both, and runs a short-lived task on the sibling. A kernel that kept the freed task in the sibling's rq->core_pick then charges forced idle time to it and its cgroup, and crashes in __cgroup_account_cputime_field() or reports a use-after-free with KASAN. Forced idle time is only accounted with schedstats, so the test turns them on for its duration if they are off. This second test is on by default and is skipped with -n, without cgroup v2, or without schedstats.
The test runs for 30 s by default, -t sets the duration. It is skipped when not run as root, without an SMT core and two other online CPUs, or when core scheduling is unavailable. Also list CONFIG_SCHED_CORE in the config fragment, which cs_prctl_test needs as well.
--- tools/testing/selftests/sched/.gitignore | 1 +- tools/testing/selftests/sched/Makefile | 1 +- tools/testing/selftests/sched/cs_forceidle_test.c | 471 +++++++++++++- 3 files changed, 473 insertions(+) create mode 100644 tools/testing/selftests/sched/cs_forceidle_test.c
tools/testing/selftests/sched/.gitignore +1 -0
@@ -1,2 +1,3 @@ cs_prctl_test +cs_forceidle_test cs_dl_server_test
tools/testing/selftests/sched/Makefile +1 -0
@@ -10,5 +10,6 @@ LDLIBS += -lpthread TEST_GEN_FILES := cs_prctl_test cs_dl_server_test TEST_PROGS := cs_prctl_test cs_dl_server_test +TEST_GEN_PROGS := cs_forceidle_test include ../lib.mk
tools/testing/selftests/sched/cs_forceidle_test.c new file +471 -0
471 lines not on this page · raw message