The "Avalanche" performance cores on Apple's M2 SoC have more than 16
authorkettenis <kettenis@openbsd.org>
Thu, 25 Aug 2022 19:16:29 +0000 (19:16 +0000)
committerkettenis <kettenis@openbsd.org>
Thu, 25 Aug 2022 19:16:29 +0000 (19:16 +0000)
commitb8e1a447239655249a804c27d3ea32c5fb83941c
tree8d3469d5467094d960dfa52ff744badc61180ab1
parentd53c6c4741bcc31f5402dcbcaf7a7e4036a67eb1
The "Avalanche" performance cores on Apple's M2 SoC have more than 16
P-states.  As a result the layout of the "state" register changed.
Make the driver handle that.

Also make sure we use the correct lowest state in case the lowest
frequency of the performance cores is different from the lowest
frequency of the efficiency cores.

ok tobhe@
sys/arch/arm64/dev/aplcpu.c