From: Ben Hutchings Date: Mon, 10 Apr 2017 23:29:44 +0000 (+0100) Subject: cpupower: Fix turbo frequency reporting for pre-Sandy Bridge cores X-Git-Tag: Ubuntu-4.10.0-25.29~267 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=5c46e8ea7f7eb7c216981f6c97a628fdcc82f9fb;p=mirror_ubuntu-zesty-kernel.git 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 Tested-by: GSR References: https://bugs.debian.org/859978 Fixes: 8fb2e440b223 (cpupower: Show Intel turbo ratio support via ...) Signed-off-by: Ben Hutchings Signed-off-by: Rafael J. Wysocki Signed-off-by: Greg Kroah-Hartman Signed-off-by: Stefan Bader Signed-off-by: Thadeu Lima de Souza Cascardo --- diff --git a/tools/power/cpupower/utils/helpers/cpuid.c b/tools/power/cpupower/utils/helpers/cpuid.c index 93b0aa74ca03..39c2c7d067bb 100644 --- a/tools/power/cpupower/utils/helpers/cpuid.c +++ b/tools/power/cpupower/utils/helpers/cpuid.c @@ -156,6 +156,7 @@ out: */ case 0x2C: /* Westmere EP - Gulftown */ cpu_info->caps |= CPUPOWER_CAP_HAS_TURBO_RATIO; + break; case 0x2A: /* SNB */ case 0x2D: /* SNB Xeon */ case 0x3A: /* IVB */