• Home
  • Raw
  • Download

Lines Matching refs:tmp

411 static inline int alloc_cpumasks(struct cpuset *cs, struct tmpmasks *tmp)  in alloc_cpumasks()  argument
421 pmask1 = &tmp->new_cpus; in alloc_cpumasks()
422 pmask2 = &tmp->addmask; in alloc_cpumasks()
423 pmask3 = &tmp->delmask; in alloc_cpumasks()
456 static inline void free_cpumasks(struct cpuset *cs, struct tmpmasks *tmp) in free_cpumasks() argument
464 if (tmp) { in free_cpumasks()
465 free_cpumask_var(tmp->new_cpus); in free_cpumasks()
466 free_cpumask_var(tmp->addmask); in free_cpumasks()
467 free_cpumask_var(tmp->delmask); in free_cpumasks()
1160 struct tmpmasks *tmp);
1393 struct tmpmasks *tmp) in remote_partition_enable() argument
1411 compute_effective_exclusive_cpumask(cs, tmp->new_cpus); in remote_partition_enable()
1412 if (cpumask_empty(tmp->new_cpus) || in remote_partition_enable()
1413 cpumask_intersects(tmp->new_cpus, subpartitions_cpus) || in remote_partition_enable()
1414 cpumask_subset(top_cpuset.effective_cpus, tmp->new_cpus)) in remote_partition_enable()
1418 isolcpus_updated = partition_xcpus_add(new_prs, NULL, tmp->new_cpus); in remote_partition_enable()
1427 cpuset_update_tasks_cpumask(&top_cpuset, tmp->new_cpus); in remote_partition_enable()
1428 update_sibling_cpumasks(&top_cpuset, NULL, tmp); in remote_partition_enable()
1441 static void remote_partition_disable(struct cpuset *cs, struct tmpmasks *tmp) in remote_partition_disable() argument
1445 compute_effective_exclusive_cpumask(cs, tmp->new_cpus); in remote_partition_disable()
1447 WARN_ON_ONCE(!cpumask_subset(tmp->new_cpus, subpartitions_cpus)); in remote_partition_disable()
1452 NULL, tmp->new_cpus); in remote_partition_disable()
1465 cpuset_update_tasks_cpumask(&top_cpuset, tmp->new_cpus); in remote_partition_disable()
1466 update_sibling_cpumasks(&top_cpuset, NULL, tmp); in remote_partition_disable()
1479 struct tmpmasks *tmp) in remote_cpus_update() argument
1495 adding = cpumask_andnot(tmp->addmask, newmask, cs->effective_xcpus); in remote_cpus_update()
1496 deleting = cpumask_andnot(tmp->delmask, cs->effective_xcpus, newmask); in remote_cpus_update()
1506 else if (cpumask_intersects(tmp->addmask, subpartitions_cpus) || in remote_cpus_update()
1507 cpumask_subset(top_cpuset.effective_cpus, tmp->addmask)) in remote_cpus_update()
1515 isolcpus_updated += partition_xcpus_add(prs, NULL, tmp->addmask); in remote_cpus_update()
1517 isolcpus_updated += partition_xcpus_del(prs, NULL, tmp->delmask); in remote_cpus_update()
1524 cpuset_update_tasks_cpumask(&top_cpuset, tmp->new_cpus); in remote_cpus_update()
1525 update_sibling_cpumasks(&top_cpuset, NULL, tmp); in remote_cpus_update()
1529 remote_partition_disable(cs, tmp); in remote_cpus_update()
1543 struct cpumask *delmask, struct tmpmasks *tmp) in remote_partition_check() argument
1566 remote_partition_disable(child, tmp); in remote_partition_check()
1632 struct tmpmasks *tmp) in update_parent_effective_cpumask() argument
1662 adding = cpumask_and(tmp->addmask, in update_parent_effective_cpumask()
1705 deleting = cpumask_and(tmp->delmask, xcpus, parent->effective_xcpus); in update_parent_effective_cpumask()
1715 cpumask_and(tmp->addmask, xcpus, parent->effective_xcpus); in update_parent_effective_cpumask()
1746 deleting = cpumask_and(tmp->delmask, in update_parent_effective_cpumask()
1749 cpumask_andnot(tmp->addmask, xcpus, newmask); in update_parent_effective_cpumask()
1750 adding = cpumask_and(tmp->addmask, tmp->addmask, in update_parent_effective_cpumask()
1753 cpumask_andnot(tmp->delmask, newmask, xcpus); in update_parent_effective_cpumask()
1754 deleting = cpumask_and(tmp->delmask, tmp->delmask, in update_parent_effective_cpumask()
1762 !cpumask_intersects(tmp->addmask, cpu_active_mask))) { in update_parent_effective_cpumask()
1765 adding = cpumask_and(tmp->addmask, in update_parent_effective_cpumask()
1788 adding = cpumask_and(tmp->addmask, in update_parent_effective_cpumask()
1811 deleting = cpumask_and(tmp->delmask, in update_parent_effective_cpumask()
1880 tmp->addmask); in update_parent_effective_cpumask()
1883 tmp->delmask); in update_parent_effective_cpumask()
1896 cpuset_update_tasks_cpumask(parent, tmp->addmask); in update_parent_effective_cpumask()
1897 update_sibling_cpumasks(parent, cs, tmp); in update_parent_effective_cpumask()
1992 static void update_cpumasks_hier(struct cpuset *cs, struct tmpmasks *tmp, in update_cpumasks_hier() argument
2028 compute_partition_effective_cpumask(cp, tmp->new_cpus); in update_cpumasks_hier()
2030 compute_effective_cpumask(tmp->new_cpus, cp, parent); in update_cpumasks_hier()
2037 if (is_partition_valid(cp) && cpumask_empty(tmp->new_cpus)) { in update_cpumasks_hier()
2048 if (is_in_v2_mode() && !remote && cpumask_empty(tmp->new_cpus)) in update_cpumasks_hier()
2049 cpumask_copy(tmp->new_cpus, parent->effective_cpus); in update_cpumasks_hier()
2062 cpumask_equal(tmp->new_cpus, cp->effective_cpus) && in update_cpumasks_hier()
2103 update_parent_effective_cpumask(cp, partcmd_update, NULL, tmp); in update_cpumasks_hier()
2112 cpumask_copy(cp->effective_cpus, tmp->new_cpus); in update_cpumasks_hier()
2172 struct tmpmasks *tmp) in update_sibling_cpumasks() argument
2196 compute_effective_cpumask(tmp->new_cpus, sibling, in update_sibling_cpumasks()
2198 if (cpumask_equal(tmp->new_cpus, sibling->effective_cpus)) in update_sibling_cpumasks()
2205 update_cpumasks_hier(sibling, tmp, false); in update_sibling_cpumasks()
2222 struct tmpmasks tmp; in update_cpumask() local
2265 if (alloc_cpumasks(NULL, &tmp)) in update_cpumask()
2309 update_parent_effective_cpumask(cp, partcmd_invalidate, NULL, &tmp); in update_cpumask()
2331 remote_cpus_update(cs, xcpus, &tmp); in update_cpumask()
2334 NULL, &tmp); in update_cpumask()
2337 xcpus, &tmp); in update_cpumask()
2343 trialcs->effective_cpus, &tmp); in update_cpumask()
2354 update_cpumasks_hier(cs, &tmp, force); in update_cpumask()
2360 free_cpumasks(NULL, &tmp); in update_cpumask()
2376 struct tmpmasks tmp; in update_exclusive_cpumask() local
2408 if (alloc_cpumasks(NULL, &tmp)) in update_exclusive_cpumask()
2425 remote_partition_disable(cs, &tmp); in update_exclusive_cpumask()
2428 &tmp); in update_exclusive_cpumask()
2431 NULL, &tmp); in update_exclusive_cpumask()
2434 trialcs->effective_xcpus, &tmp); in update_exclusive_cpumask()
2441 trialcs->effective_cpus, &tmp); in update_exclusive_cpumask()
2456 update_cpumasks_hier(cs, &tmp, force); in update_exclusive_cpumask()
2462 free_cpumasks(NULL, &tmp); in update_exclusive_cpumask()
3738 static void cpuset_hotplug_update_tasks(struct cpuset *cs, struct tmpmasks *tmp) in cpuset_hotplug_update_tasks() argument
3765 if (!tmp || !cs->partition_root_state) in cpuset_hotplug_update_tasks()
3779 remote_partition_disable(cs, tmp); in cpuset_hotplug_update_tasks()
3804 update_parent_effective_cpumask(cs, partcmd, NULL, tmp); in cpuset_hotplug_update_tasks()
3855 struct tmpmasks tmp, *ptmp = NULL; in cpuset_handle_hotplug() local
3857 if (on_dfl && !alloc_cpumasks(NULL, &tmp)) in cpuset_handle_hotplug()
3858 ptmp = &tmp; in cpuset_handle_hotplug()