/* alloc_trial_cpuset - allocate a trial cpuset @cs: the cpuset that the trial cpuset duplicates  */
static struct cpuset* alloc_trial_cpuset(const struct cpuset *cs)
/* alloc_trial_cpuset - allocate a trial cpuset @cs: the cpuset that the trial cpuset duplicates  */
static struct cpuset* alloc_trial_cpuset(const struct cpuset *cs)
{
	struct cpuset *trial;
	trial = kmemdup(cs, sizeof(*cs), GFP_KERNEL);
	if (!trial)
		return NULL;
	if (!alloc_cpumask_var(&trial->cpus_allowed, GFP_KERNEL)) {
		kfree(trial);
		return NULL;
	}
	cpumask_copy(trial->cpus_allowed, cs->cpus_allowed);
	return trial;
}