#ifdef CONFIG_SCHED_USE_FLUID_RT
struct frt_dom {
- bool enabled;
unsigned int coverage_ratio;
unsigned int coverage_thr;
unsigned int active_ratio;
if (!dom->active_ratio)
dom->active_thr = 0;
- dom->enabled = true;
return;
disable:
+ dom->coregroup = cnt;
+ dom->coverage_ratio = 100;
+ dom->active_thr = 0;
pr_err("FRT(%s): failed to parse frt node\n", __func__);
}
INIT_LIST_HEAD(&frt_list);
ptr_mask = kzalloc(sizeof(struct cpumask), GFP_KERNEL);
+ if (!ptr_mask)
+ pr_err("FRT(%s): failed to allocate ptr_mask\n");
cpumask_setall(ptr_mask);
for_each_possible_cpu(cpu) {
continue;
dom = kzalloc(sizeof(struct frt_dom), GFP_KERNEL);
+ if (!dom)
+ pr_err("FRT(%s): failed to allocate dom\n");
if (cpu == 0)
head = dom;
list_add_tail(&dom->list, &frt_list);
}
-
frt_sysfs_init();
of_node_put(dn);