Lines Matching refs:trial
457 struct cpuset *trial; in alloc_trial_cpuset() local
459 trial = kmemdup(cs, sizeof(*cs), GFP_KERNEL); in alloc_trial_cpuset()
460 if (!trial) in alloc_trial_cpuset()
463 if (alloc_cpumasks(trial, NULL)) { in alloc_trial_cpuset()
464 kfree(trial); in alloc_trial_cpuset()
468 cpumask_copy(trial->cpus_allowed, cs->cpus_allowed); in alloc_trial_cpuset()
469 cpumask_copy(trial->effective_cpus, cs->effective_cpus); in alloc_trial_cpuset()
470 cpumask_copy(trial->effective_xcpus, cs->effective_xcpus); in alloc_trial_cpuset()
471 cpumask_copy(trial->exclusive_cpus, cs->exclusive_cpus); in alloc_trial_cpuset()
472 return trial; in alloc_trial_cpuset()
533 static int validate_change(struct cpuset *cur, struct cpuset *trial) in validate_change() argument
542 ret = cpuset1_validate_change(cur, trial); in validate_change()
559 cpumask_empty(trial->cpus_allowed)) in validate_change()
562 nodes_empty(trial->mems_allowed)) in validate_change()
573 trial->cpus_allowed)) in validate_change()
587 txset = !cpumask_empty(trial->exclusive_cpus); in validate_change()
589 if (is_cpu_exclusive(trial) || is_cpu_exclusive(c) || in validate_change()
591 if (!cpusets_are_exclusive(trial, c)) in validate_change()
603 xcpus = trial->exclusive_cpus; in validate_change()
607 acpus = trial->cpus_allowed; in validate_change()
612 if ((is_mem_exclusive(trial) || is_mem_exclusive(c)) && in validate_change()
613 nodes_intersects(trial->mems_allowed, c->mems_allowed)) in validate_change()