diff options
| author | Tejun Heo <tj@kernel.org> | 2026-07-21 11:25:14 -1000 |
|---|---|---|
| committer | Tejun Heo <tj@kernel.org> | 2026-07-21 22:27:17 -1000 |
| commit | 8cc4909134f290fdf0a1848cf3e109d015918f09 (patch) | |
| tree | d5cf3b2b5b46cf78d31e67306fa112d637725571 | |
| parent | 5f860e647de21269c3b7f03be9d892d6af46b972 (diff) | |
| download | linux-8cc4909134f290fdf0a1848cf3e109d015918f09.tar.gz linux-8cc4909134f290fdf0a1848cf3e109d015918f09.zip | |
sched_ext: Drop unused scx_cpumask_to_cmask()
scx_cpumask_to_cmask() has no callers.
Reviewed-by: Andrea Righi <arighi@nvidia.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
| -rw-r--r-- | kernel/sched/ext/cid.c | 21 | ||||
| -rw-r--r-- | kernel/sched/ext/cid.h | 1 |
2 files changed, 0 insertions, 22 deletions
diff --git a/kernel/sched/ext/cid.c b/kernel/sched/ext/cid.c index 9dfd242be34f..5f990d95735f 100644 --- a/kernel/sched/ext/cid.c +++ b/kernel/sched/ext/cid.c @@ -371,27 +371,6 @@ void scx_cmask_fill(struct scx_cmask *m) m->bits[nr_words - 1] &= (1ULL << tail_bits) - 1; } -/** - * scx_cpumask_to_cmask - Translate a kernel cpumask into a cmask - * @src: source cpumask - * @dst: cmask to write - * - * Clear @dst's active range and set the bit for each cid whose cpu is in - * @src and lies within that range. Out-of-range cids are silently ignored. - */ -void scx_cpumask_to_cmask(const struct cpumask *src, struct scx_cmask *dst) -{ - s32 cpu; - - scx_cmask_clear(dst); - for_each_cpu(cpu, src) { - s32 cid = __scx_cpu_to_cid(cpu); - - if (cid >= 0) - __scx_cmask_set(cid, dst); - } -} - /* * Return the index of the largest entry in @counts, or NUMA_NO_NODE if all * entries are zero. Ties resolve to the lowest index. diff --git a/kernel/sched/ext/cid.h b/kernel/sched/ext/cid.h index b36a1a28eac8..470ac9224da4 100644 --- a/kernel/sched/ext/cid.h +++ b/kernel/sched/ext/cid.h @@ -68,7 +68,6 @@ bool scx_cmask_intersects(const struct scx_cmask *a, const struct scx_cmask *b); bool scx_cmask_empty(const struct scx_cmask *m); s32 scx_cid_init(struct scx_sched *sch); int scx_cid_kfunc_init(void); -void scx_cpumask_to_cmask(const struct cpumask *src, struct scx_cmask *dst); /** * cid_valid - Verify a cid value, to be used on ops input args |
