Page MenuHomeFreeBSD

Add a hw.model sysctl oid for arm64
ClosedPublic

Authored by ganbold on May 1 2019, 5:50 AM.

Details

Summary

Add a hw.model sysctl oid for arm64 which reports the CPU model similar to armv6/7.

Diff Detail

Repository
rS FreeBSD src repository
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

ganbold created this revision.May 1 2019, 5:50 AM

Comment and title should be:

Add a hw.model sysctl oid for arm64 which reports the CPU model similar to armv6/7.

ganbold retitled this revision from Add a hw.model sysctl oid for armv64 to Add a hw.model sysctl oid for arm64.May 1 2019, 5:52 AM
ganbold edited the summary of this revision. (Show Details)
andrew accepted this revision.May 1 2019, 12:41 PM

How does this work in a big.LITTLE SoC?

This revision is now accepted and ready to land.May 1 2019, 12:41 PM
manu accepted this revision.May 1 2019, 2:09 PM

root@rockpro64:~ # sysctl hw.model
hw.model: ARM Cortex-A53 r0p4

This is the little cores, since we boot from it, it will always report this one.
I'm ok with this change but don't think that we should rely too much on the value.

This revision was automatically updated to reflect the committed changes.