}
scenario->list[index].locked = locked;
- if (locked)
- scenario->list[index].locked_time = pass_get_time_ms();
-
/* Change scaling scope according to scenario's level */
for (i = 0; i < scenario->num_scenarios; i++) {
struct pass_scenario *scn = &scenario->list[i];
max_level = policy->default_max_level;
}
+ pass_governor_change_level_scope(policy, min_level, max_level);
+
if (locked) {
_I("Lock '%s' scenario for '%s' resource\n",
name, cdata->res_name);
+
+ scenario->list[index].locked_time = pass_get_time_ms();
} else {
_I("UnLock '%s' scenario for '%s' resource (%lldms)\n",
name, cdata->res_name,
scenario->list[index].locked_time = 0;
}
- pass_governor_change_level_scope(policy, min_level, max_level);
-
return 0;
}