On CPUs that have MPERF/APERF support use that information to install a
authorclaudio <claudio@openbsd.org>
Tue, 26 Apr 2022 08:35:30 +0000 (08:35 +0000)
committerclaudio <claudio@openbsd.org>
Tue, 26 Apr 2022 08:35:30 +0000 (08:35 +0000)
commitb4cf4983f9cd09dc5f2a0f76287f54df329b3474
tree263c906ab6607a10343b95b32d813b46846423ca
parent8aa2bac99bb2790a6f0e023ed932d43c5f4b3448
On CPUs that have MPERF/APERF support use that information to install a
cpu frequency sensor for each core. This works on many "modern" Intel and
AMD cpus (probably anything that has some kind of turbo mode).
OK kettenis@
sys/arch/amd64/amd64/cpu.c
sys/arch/amd64/amd64/identcpu.c
sys/arch/amd64/include/cpu.h
sys/arch/amd64/include/specialreg.h