provide operating performance point info about each cpu via kstats.
authordlg <dlg@openbsd.org>
Thu, 23 Nov 2023 01:00:44 +0000 (01:00 +0000)
committerdlg <dlg@openbsd.org>
Thu, 23 Nov 2023 01:00:44 +0000 (01:00 +0000)
commitcda3096df4c288937503a1281fa5c1ee47431834
tree77c55223441609fffcde33cce90598f581b5091e
parentdfd7428cb9ea3ffeffa01eafe2ac770ba4aaa7ef
provide operating performance point info about each cpu via kstats.

if there's a device tree and it provides information about cpu
speed, expose those stats. this is particularly useful on big.little
or systems with multiple clusters/clock domains or cores that can
scale indepenently because it can report the actual speed each cpu
is operating at independently.

ok patrick@ who used an earlier version of this diff to work on cpu
scaling on an rk3588 system.
sys/arch/arm64/arm64/cpu.c