Andrea Righi
a730e3f7a4
sched_ext: idle: Consolidate default idle CPU selection kfuncs
...
There is no reason to restrict scx_bpf_select_cpu_dfl() invocations to
ops.select_cpu() while allowing scx_bpf_select_cpu_and() to be used from
multiple contexts, as both provide equivalent functionality, with the
latter simply accepting an additional "allowed" cpumask.
Therefore, unify the two APIs, enabling both kfuncs to be used from
ops.select_cpu(), ops.enqueue(), and unlocked contexts (e.g., via BPF
test_run).
This allows schedulers to implement a consistent idle CPU selection
policy and helps reduce code duplication.
Signed-off-by: Andrea Righi <arighi@nvidia.com >
Signed-off-by: Tejun Heo <tj@kernel.org >
2025-05-21 07:35:48 -10:00
..
2025-03-30 13:45:28 -07:00
2025-04-01 11:02:03 -07:00
2025-04-01 09:29:18 -07:00
2025-04-02 18:17:33 -07:00
2025-03-12 13:41:44 +01:00
2025-03-24 21:18:05 -07:00
2025-04-01 15:17:16 -07:00
2025-02-26 16:07:59 +01:00
2025-01-24 22:47:27 -08:00
2025-03-28 11:22:54 -07:00
2024-10-14 16:44:56 +02:00
2025-03-30 15:44:36 -07:00
2025-04-01 10:06:52 -07:00
2025-03-31 13:37:22 -07:00
2025-03-29 10:01:55 -07:00
2025-03-27 19:22:24 -07:00
2025-04-02 10:04:48 -07:00
2025-05-21 07:35:48 -10:00
2025-03-26 21:48:21 -07:00
2025-04-03 16:09:29 -07:00
2025-02-12 12:24:16 +01:00
2025-02-19 14:08:41 +01:00
2025-01-29 20:02:04 -05:00
2024-10-11 14:34:16 -04:00
2024-12-05 19:22:38 -05:00
2025-03-18 15:34:27 +01:00
2024-06-24 22:24:55 -07:00
2025-03-07 22:03:09 -06:00
2025-03-30 15:44:36 -07:00
2025-03-04 18:44:29 -08:00
2025-03-25 14:47:04 -07:00
2025-02-10 16:56:58 -08:00
2025-03-16 22:30:47 -07:00
2024-12-02 11:25:09 +01:00
2025-01-28 13:48:37 +01:00
2025-03-25 15:56:22 +01:00
2025-04-01 10:06:52 -07:00
2024-10-14 09:14:35 +02:00
2025-01-31 12:07:07 -08:00
2025-03-21 22:10:04 -07:00
2025-02-21 15:05:38 +01:00
2025-01-13 22:40:36 -08:00
2025-03-10 11:54:46 +01:00
2024-07-20 16:33:21 +09:00
2025-01-02 22:12:12 +01:00
2025-02-18 10:16:04 +01:00
2025-02-21 10:25:33 +01:00
2025-02-21 09:20:30 +01:00
2024-11-14 22:43:48 -08:00
2024-11-07 15:25:05 +01:00
2024-12-30 17:59:08 -08:00
2025-04-01 10:06:52 -07:00
2025-03-16 22:30:47 -07:00
2025-03-16 22:30:47 -07:00
2024-09-01 20:43:23 -07:00
2024-12-24 09:46:49 +01:00
2025-03-10 11:54:46 +01:00
2025-01-07 16:59:15 +01:00
2025-02-04 01:42:27 +01:00
2025-01-28 13:48:37 +01:00
2025-03-22 09:49:26 +01:00
2024-11-05 17:12:31 -08:00
2024-11-03 01:28:06 -05:00
2025-02-24 16:37:23 -05:00
2025-04-02 10:30:10 -07:00
2025-03-10 11:54:46 +01:00
2025-03-06 10:18:36 +01:00
2025-01-28 13:48:37 +01:00
2025-03-24 13:39:27 -07:00
2024-08-04 13:36:28 -07:00
2025-04-01 10:06:52 -07:00
2025-03-21 22:10:05 -07:00
2024-10-09 12:47:19 -07:00
2025-03-21 22:10:05 -07:00
2025-03-06 22:26:49 +01:00
2024-11-14 16:09:51 -08:00
2025-02-24 11:17:10 -08:00
2025-04-02 16:05:21 -07:00
2025-01-28 11:34:03 -08:00
2025-03-25 10:46:44 +01:00
2025-01-28 13:48:37 +01:00
2025-03-30 15:44:36 -07:00
2025-03-11 10:15:52 -07:00
2024-07-18 12:19:20 -07:00
2025-03-25 10:33:23 -07:00
2025-01-28 13:48:37 +01:00
2025-03-29 11:59:43 -07:00
2025-01-13 22:40:36 -08:00
2024-11-03 01:28:06 -05:00
2025-02-05 07:14:24 -08:00
2025-03-21 15:30:10 -04:00
2024-07-12 16:39:53 -07:00
2025-03-16 22:30:50 -07:00
2025-01-28 13:48:37 +01:00
2025-02-12 12:12:27 +01:00
2024-09-12 12:16:09 +02:00
2025-01-28 13:48:37 +01:00
2025-03-01 02:52:52 -05:00
2024-09-03 21:15:43 -07:00
2025-03-24 09:52:37 -07:00
2025-04-01 10:06:52 -07:00
2025-03-25 10:54:15 -07:00
2025-02-26 14:22:47 -08:00