Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

intel_idle: fix IVT idle state table setting

Ivy Town idle state table will not be set as intended. Fix it.

Picked up by Coverity - CID 1201420/1201421.

Fixes: 0138d8f075 ("intel_idle: fine-tune IVT residency targets")
Signed-off-by: Christoph Jaeger <christophjaeger@linux.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>

authored by

Christoph Jaeger and committed by
Rafael J. Wysocki
d27dca42 a798c10f

+2 -1
+2 -1
drivers/idle/intel_idle.c
··· 750 750 if (package_num + 1 > num_sockets) { 751 751 num_sockets = package_num + 1; 752 752 753 - if (num_sockets > 4) 753 + if (num_sockets > 4) { 754 754 cpuidle_state_table = ivt_cstates_8s; 755 755 return; 756 + } 756 757 } 757 758 } 758 759