]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
cpupower: Fix turbo frequency reporting for pre-Sandy Bridge cores
authorBen Hutchings <ben@decadent.org.uk>
Mon, 10 Apr 2017 23:29:44 +0000 (00:29 +0100)
committerStefan Bader <stefan.bader@canonical.com>
Tue, 20 Jun 2017 08:45:53 +0000 (10:45 +0200)
commit5c46e8ea7f7eb7c216981f6c97a628fdcc82f9fb
tree9bcf882b8fe7623e835cb9e1601d816c30285381
parent3adc9fcd303100b95209e3193134869a5694d878
cpupower: Fix turbo frequency reporting for pre-Sandy Bridge cores

BugLink: http://bugs.launchpad.net/bugs/1691369
commit 4cca0457686e4ee1677d69469e4ddfd94d389a80 upstream.

The switch that conditionally sets CPUPOWER_CAP_HAS_TURBO_RATIO and
CPUPOWER_CAP_IS_SNB flags is missing a break, so all cores get both
flags set and an assumed base clock of 100 MHz for turbo values.

Reported-by: GSR <gsr.bugs@infernal-iceberg.com>
Tested-by: GSR <gsr.bugs@infernal-iceberg.com>
References: https://bugs.debian.org/859978
Fixes: 8fb2e440b223 (cpupower: Show Intel turbo ratio support via ...)
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
tools/power/cpupower/utils/helpers/cpuid.c