Commit d27dca42 authored by Christoph Jaeger's avatar Christoph Jaeger Committed by Rafael J. Wysocki

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: 0138d8f0 ("intel_idle: fine-tune IVT residency targets")
Signed-off-by: default avatarChristoph Jaeger <christophjaeger@linux.com>
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent a798c10f
...@@ -750,9 +750,10 @@ void intel_idle_state_table_update(void) ...@@ -750,9 +750,10 @@ void intel_idle_state_table_update(void)
if (package_num + 1 > num_sockets) { if (package_num + 1 > num_sockets) {
num_sockets = package_num + 1; num_sockets = package_num + 1;
if (num_sockets > 4) if (num_sockets > 4) {
cpuidle_state_table = ivt_cstates_8s; cpuidle_state_table = ivt_cstates_8s;
return; return;
}
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment