sched-ext / scx

sched_ext schedulers and tools
https://bit.ly/scx_slack
GNU General Public License v2.0
844 stars 79 forks source link

scx: Unify loading and running boilerplate across rust schedulers #329

Closed htejun closed 4 months ago

htejun commented 4 months ago

Make restart handling with user_exit_info simpler and consistently use the load and report macros consistently across the rust schedulers. This makes all schedulers automatically handle auto restarts from CPU hotplug events. Note that this is necessary even for scx_lavd which has CPU hotplug operations as CPU hotplug operations which took place between skel open and scheduler init can still trigger restart.

htejun commented 4 months ago

@arighi The commit ends up changing unrelated formatting in rlfifo. If this doesn't agree with your cargo fmt, let's come up with a way to sync that.