Skip to content

Commit

Permalink
cpupower: Fix turbo frequency reporting for pre-Sandy Bridge cores
Browse files Browse the repository at this point in the history
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 <[email protected]>
Tested-by: GSR <[email protected]>
References: https://bugs.debian.org/859978
Fixes: 8fb2e44 (cpupower: Show Intel turbo ratio support via ...)
Signed-off-by: Ben Hutchings <[email protected]>
Signed-off-by: Rafael J. Wysocki <[email protected]>
  • Loading branch information
bwhacks authored and rafaeljw committed Apr 13, 2017
1 parent ad0d9c3 commit 4cca045
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tools/power/cpupower/utils/helpers/cpuid.c
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ int get_cpu_info(unsigned int cpu, struct cpupower_cpu_info *cpu_info)
*/
case 0x2C: /* Westmere EP - Gulftown */
cpu_info->caps |= CPUPOWER_CAP_HAS_TURBO_RATIO;
break;
case 0x2A: /* SNB */
case 0x2D: /* SNB Xeon */
case 0x3A: /* IVB */
Expand Down

0 comments on commit 4cca045

Please sign in to comment.