mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-06 19:08:57 +09:00
cpupower: Fix turbo frequency reporting for pre-Sandy Bridge cores
commit4cca045768upstream. 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:8fb2e440b2(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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
3e8c47e9c1
commit
2b58bb1682
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user