Closed kulinseth closed 2 years ago
Thanks for the review @malfet. As suggested by @Maratyszcza we have split up the PR into following PRs:
This PR is huge, which makes it hard to review. Please extract README updates and FHM support into separate PRs, these are parts that can be reviewed and merged quickly.
Please take a look at #99 - #104 PRs
Closing this PR as its handled in other ones.
Use sysctls available in macOS 12/iOS 15 for Apple silicon The patch applies to ARM and should not change any behavior for x86_64 / Intel. In general, it'll use newer sysctls when they're available, but fallback to previous implementations when they're not present. Newer sysctls are available in iOS 15 and macOS Monterey 12.
Example output:
Previous cpu-info running on macOS / M1:
cpu-info running on macOS / M1 after patch:
Previous isa-info running on macOS / M1:
isa-info running on macOS Monterey 12 / M1 after patch:
Previous cache-info running on macOS / M1:
cache-info running on macOS Monterey 12 / M1 after patch: