Commit 61319bde authored by Adam Wujek's avatar Adam Wujek Committed by Adam Wujek

proto-standard: move setting of priority and domain to bmc_apply_configured_device_attributes

Such change simplifies the implementation of a command changing priority1,
priority2 and domain number in runtime.
Signed-off-by: 's avatarAdam Wujek <adam.wujek@creotech.pl>
parent 0174ee10
......@@ -381,5 +381,9 @@ void bmc_apply_configured_device_attributes(struct pp_globals *ppg) {
tpDS->frequencyTraceable=rt_opts->frequencyTraceable;
tpDS->timeTraceable=rt_opts->timeTraceable;
defDS->priority1 = rt_opts->priority1;
defDS->priority2 = rt_opts->priority2;
defDS->domainNumber = rt_opts->domainNumber;
}
......@@ -139,10 +139,6 @@ int pp_init_globals(struct pp_globals *ppg, struct pp_runtime_opts *pp_rt_opts)
}
def->priority1 = rt_opts->priority1;
def->priority2 = rt_opts->priority2;
def->domainNumber = rt_opts->domainNumber;
for (i = 0; i < get_numberPorts(def); i++) {
struct pp_instance *ppi = INST(ppg, i);
......
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