[PATCH V2 0/2] rust: Introduce CpuId and fix cpumask doctest
From: Viresh Kumar
Date: Mon Jun 09 2025 - 06:51:26 EST
Hello,
Here is another attempt at fixing the cpumask doctest. This series creates a new
abstraction `CpuId`, which is used to write a cleaner cpumask example which
doesn't fail in those corner cases.
--
Viresh
V1->V2:
- Introduce CpuId.
- Use CpuId in cpufreq, opp, cpumask abstractions.
- Fix cpumask example.
Viresh Kumar (2):
rust: cpu: Introduce CpuId abstraction
rust: Use CpuId in place of raw CPU numbers
drivers/cpufreq/rcpufreq_dt.rs | 4 +-
rust/kernel/cpu.rs | 106 ++++++++++++++++++++++++++++++++-
rust/kernel/cpufreq.rs | 27 ++++++---
rust/kernel/cpumask.rs | 51 +++++++++++-----
4 files changed, 161 insertions(+), 27 deletions(-)
base-commit: 19272b37aa4f83ca52bdf9c16d5d81bdd1354494
--
2.31.1.272.g89b43f80a514