Corner bands used on CPRh controllers may not necessarily define
per-online-core or per-temperature adjustments. Do not
attempt to program adjustments on corner bands whose sdelta
tables do not have either core-count or temperature based
adjustments defined.
Change-Id: I87d18778fef81671c5e7cc261cc70ce07c662933
CRs-Fixed:
1020505
Signed-off-by: Osvaldo Banuelos <osvaldob@codeaurora.org>
corner_band = &vreg->corner_band[i];
sdelta = corner_band->sdelta;
+ if (!sdelta->allow_core_count_adj && !sdelta->allow_temp_adj) {
+ /*
+ * Per-online-core and per-temperature margin
+ * adjustments are disabled for this corner band.
+ */
+ continue;
+ }
+
if (vreg->allow_core_count_adj)
cpr3_write_temp_core_margin(ctrl,
CPRH_MARGIN_TEMP_CORE_VBAND(0, i),