Skip to content
This repository has been archived by the owner on Jun 18, 2024. It is now read-only.

scx: Reorg code a bit and add possible/online cpumask helpers #178

Merged
merged 5 commits into from
Apr 10, 2024

Conversation

htejun
Copy link
Collaborator

@htejun htejun commented Apr 9, 2024

No description provided.

@htejun htejun requested a review from Byte-Lab April 9, 2024 21:13
The allocation could be too short if the possible CPU IDs have holes. Use
nr_cpu_ids instead of num_possible_cpus().
So that they are in the same order as the definitions in ext.c. No
functional changes.
So that the callers don't have to do it explicitly.
There's no reason to keep the defs of sched_ext_ops and friends in
include/linux/sched/ext.h. They're exposed only through vmlinux.h which
doesn't care where the ops is defined. Let's move all the things which don't
need to be shared in the kernel tree into ext.c. No functional change.

So that the callers don't have to do it explicitly.
…and scx_put_cpumask()

These are useful to have in general. scx_put_cpumask() is a bit sad but
hopefully BPF will develop a way to annotate static lifetime at some point
and we won't need these.
@htejun htejun merged commit 1aee870 into sched_ext Apr 10, 2024
1 check failed
@htejun htejun deleted the htejun/reorg branch April 10, 2024 19:54
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants