News: 0001547500

  ARM Give a man a fire and he's warm for a day, but set fire to him and he's warm for the rest of his life (Terry Pratchett, Jingo)

Rust Abstractions For CPUFreq Prepped For Linux 6.16

([Programming] 28 Minutes Ago More Rust Abstractions)


More Rust programming language abstractions are on the way for the upcoming [1]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 [2]worked on for the past year and now seemingly in good enough shape and at a consensus for going to the mainline kernel.

[3]This pull request on the way to the Linux power management tree is what introduces those new Rust abstractions.



[1] https://www.phoronix.com/search/Linux+6.16

[2] https://www.phoronix.com/news/Rust-Bindings-Linux-CPUFreq

[3] https://lore.kernel.org/rust-for-linux/20250520061944.pl3mqw2clo2roe3s@vireshk-i7/



phoronix

Absence in love is like water upon fire; a little quickens, but much
extinguishes it.
-- Hannah More