Lines Matching refs:trial
689 struct cpuset *trial; in alloc_trial_cpuset() local
691 trial = kmemdup(cs, sizeof(*cs), GFP_KERNEL); in alloc_trial_cpuset()
692 if (!trial) in alloc_trial_cpuset()
695 if (alloc_cpumasks(trial, NULL)) { in alloc_trial_cpuset()
696 kfree(trial); in alloc_trial_cpuset()
700 cpumask_copy(trial->cpus_allowed, cs->cpus_allowed); in alloc_trial_cpuset()
701 cpumask_copy(trial->cpus_requested, cs->cpus_requested); in alloc_trial_cpuset()
702 cpumask_copy(trial->effective_cpus, cs->effective_cpus); in alloc_trial_cpuset()
703 return trial; in alloc_trial_cpuset()
720 static int validate_change_legacy(struct cpuset *cur, struct cpuset *trial) in validate_change_legacy() argument
731 if (!is_cpuset_subset(c, trial)) in validate_change_legacy()
737 if (par && !is_cpuset_subset(trial, par)) in validate_change_legacy()
765 static int validate_change(struct cpuset *cur, struct cpuset *trial) in validate_change() argument
774 ret = validate_change_legacy(cur, trial); in validate_change()
791 cpumask_empty(trial->cpus_allowed)) in validate_change()
794 nodes_empty(trial->mems_allowed)) in validate_change()
805 trial->cpus_allowed)) in validate_change()
814 if ((is_cpu_exclusive(trial) || is_cpu_exclusive(c)) && in validate_change()
816 cpumask_intersects(trial->cpus_requested, c->cpus_requested)) in validate_change()
818 if ((is_mem_exclusive(trial) || is_mem_exclusive(c)) && in validate_change()
820 nodes_intersects(trial->mems_allowed, c->mems_allowed)) in validate_change()