The 'overriable' property is used for only rescon module.
It means that be able to move 'overriable' property from struct pass_resource
to struct pass_rescon for more capsulation.
Change-Id: Icd63b1b25fb8dcb64fd1d9fd894d2b604f10ea22
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
cur->init_data.memory.fault_around_bytes = -1;
- cur->overridable = 1;
-
ret = parse_resource_data(pass, i, resource_obj);
if (ret < 0) {
_E("cannot parse of %dth resource in 'device_list' section\n", i);
res->rescon.min_level = INIT_VALUE;
res->rescon.max_level = INIT_VALUE;
res->rescon.init_scenario_level = INIT_VALUE;
+ res->rescon.overridable = 1;
/* Initialize the CPUHP's data */
cpuhp->pass_cpu_threshold = 0;
int ret, i;
int failed = 0;
- if (!res->overridable)
+ if (!rescon->overridable)
return 0;
/*
{
struct pass_rescon *rescon = &res->rescon;
- if (scenario_level < 0 || !res->overridable)
+ if (scenario_level < 0 || !rescon->overridable)
return;
g_mutex_lock(&rescon->scenario_level_mutex);
{
struct pass_rescon *rescon = &res->rescon;
- if (scenario_level < 0 || !res->overridable)
+ if (scenario_level < 0 || !rescon->overridable)
return;
g_mutex_lock(&rescon->scenario_level_mutex);
if (!res)
return -EINVAL;
- res->overridable = overridable;
+ res->rescon.overridable = overridable;
return 0;
}
/** State of PASS_MODULE_RESCON */
enum pass_state state;
+ /** Representing whether this resource can be overridden or not */
+ int overridable;
+
/**
* Initial level when initializing h/w resource by resource controller.
* If value is -1, it is not initialized by parser.
struct pass_pmqos pmqos;
/** Instance of PASS_MODULE_THERMAL module */
struct pass_thermal thermal;
-
- /** Representing whether this resource can be overridden or not */
- int overridable;
};
/******************************************************