Page MenuHomeFreeBSD

riscv: rework CPU identification [7/7]
ClosedPublic

Authored by mhorne on May 9 2023, 5:16 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mar 6 2024, 9:00 PM
Unknown Object (File)
Feb 8 2024, 5:08 PM
Unknown Object (File)
Dec 20 2023, 6:27 AM
Unknown Object (File)
Dec 18 2023, 4:10 PM
Unknown Object (File)
Dec 12 2023, 1:28 PM
Unknown Object (File)
Sep 23 2023, 11:10 PM
Unknown Object (File)
Sep 6 2023, 12:19 AM
Unknown Object (File)
Sep 4 2023, 4:39 AM
Subscribers

Details

Summary

Change the reporting strategy to more closely follow what arm64
implements:

  • Always print the one-line CPU summary when a core comes online
  • Only print the additional fields (e.g. ISA) when they differ from the CPU before it

In the common case of identical CPUs this results in informative but
non-repetitive output.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

mhorne requested review of this revision.May 9 2023, 5:16 PM
markj added inline comments.
sys/riscv/riscv/identcpu.c
459

Indentation looks wrong here.

This revision is now accepted and ready to land.May 11 2023, 3:35 PM
This revision was automatically updated to reflect the committed changes.
mhorne marked an inline comment as done.