]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
In cf_get_method, when we don't already know what clock speed the CPU is
authorcperciva <cperciva@FreeBSD.org>
Sun, 11 May 2014 10:32:58 +0000 (10:32 +0000)
committercperciva <cperciva@FreeBSD.org>
Sun, 11 May 2014 10:32:58 +0000 (10:32 +0000)
commite9e7ccdea56a38ab5bee2efec955f8b14b05fd15
treebcfd8cf3d829cbadc13037ed06e74fc1df88ff3d
parent8e56ee9c85ef48c55f77dfa3b6603ea9737a9033
In cf_get_method, when we don't already know what clock speed the CPU is
running at, guess the nearest value instead of looking for a value within
25 MHz of the observed frequency.

Prior to this change, if a system booted with Intel Turbo Boost enabled,
the dev.cpu.0.freq sysctl is nonfunctional, since the ACPI-reported
frequency for Turbo Boost states does not match the actual clock frequency
(and thus no levels are within 25 MHz of the observed frequency) and the
current performance level is read before a new level is set.

MFC after: 3 days
Relnotes: Bug fix in power management on CPUs with Intel Turbo Boost
sys/kern/kern_cpu.c