rust: Introduce CpuId and fix cpumask doctest
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v3 Latest3 patches 8 repliesIn review
- v22 patches 14 repliesSuperseded
Changes in v3 from the cover letter
- Include the separately sent patch as 3/3 and clarify about unstable CpuId.
- Add few debug_assert!().
- Improved comments, commit log.
Patches in v3 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | rust: cpu: Introduce CpuId abstractionrust/ | +110 | 1 reply | |
| 2/3 | rust: Use CpuId in place of raw CPU numbersdrivers/ rust/ rust/ +1 more | +59 | 3 replies | |
| 3/3 | rust: cpu: Add CpuId::current() to retrieve current CPU IDMAINTAINERS rust/ rust/ +1 more | +20 | 2 replies |
Reviews trailers per patch
All 3 patches have a Reviewed-by or Acked-by.
| Patch | Boqun Feng |
|---|---|
| 1/3 | R-b |
| 2/3 | R-b |
| 3/3 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH V3 0/3] rust: Introduce CpuId and fix cpumask doctest
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.
Rebased over v6.16-rc1 + [1].
V2->V3:
- Include the separately sent patch as 3/3 and clarify about unstable CpuId.
- Add few debug_assert!().
- Improved comments, commit log.
V1->V2:
- Introduce CpuId.
- Use CpuId in cpufreq, opp, cpumask abstractions.
- Fix cpumask example.
--
Viresh
Viresh Kumar (3):
rust: cpu: Introduce CpuId abstraction
rust: Use CpuId in place of raw CPU numbers
rust: cpu: Add CpuId::current() to retrieve current CPU ID
MAINTAINERS | 1 + drivers/cpufreq/rcpufreq_dt.rs | 4 +- rust/helpers/cpu.c | 8 +++ rust/helpers/helpers.c | 1 + rust/kernel/cpu.rs | 124 ++++++++++++++++++++++++++++++++- rust/kernel/cpufreq.rs | 27 ++++--- rust/kernel/cpumask.rs | 51 ++++++++++---- 7 files changed, 189 insertions(+), 27 deletions(-) create mode 100644 rust/helpers/cpu.c
base-commit: 19272b37aa4f83ca52bdf9c16d5d81bdd1354494
prerequisite-patch-id: 1917103231ee798c4217f6da8bafa603b00e554c
Signature · 1 line
2.31.1.272.g89b43f80a514