More Rust programming language abstractions are on the way for the upcoming Linux 6.16 cycle to allow for more areas where Rust-based drivers can be created for the kernel.
Viresh Kumar sent out the CPUFreq ARM updates today ahead of the Linux 6.16 merge window opening as soon as next week. Notable with this pull request is adding new Rust abstractions around these CPU frequency scaling / power management code.
Rust abstractions have been submitted for the CPUFreq framework as well as for the Operating Performance Points (OPP) framework used by various Arm SoCs for frequency and voltage pairs that the device will support per domain. In addition to Rust support for CPUFreq and OPP, there are also basic Rust abstractions added for the clock “clk” and Cpumask frameworks.
These CPUFreq Rust abstractions were worked on for the past year and now seemingly in good enough shape and at a consensus for going to the mainline kernel.
This pull request on the way to the Linux power management tree is what introduces those new Rust abstractions.