mirror of
https://github.com/torvalds/linux.git
synced 2026-09-23 13:14:02 +02:00
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>
This commit is contained in:
parent
5f860e647d
commit
8cc4909134
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user