/* Call with cgroup_mutex held. May take callback_mutex during call. Called for each task in a cgroup by cgroup_scan_tasks(). Return nonzero if this tasks's cpus_allowed mask should be changed (in other words, if its mask is not equal to its cpuset's mask).  */
static int cpuset_test_cpumask(struct task_struct *tsk, struct cgroup_scanner *scan)
/* Call with cgroup_mutex held. May take callback_mutex during call. Called for each task in a cgroup by cgroup_scan_tasks(). Return nonzero if this tasks's cpus_allowed mask should be changed (in other words, if its mask is not equal to its cpuset's mask).  */
static int cpuset_test_cpumask(struct task_struct *tsk, struct cgroup_scanner *scan)
{
	return !cpumask_equal(&tsk->cpus_allowed,
			(cgroup_cs(scan->cg))->cpus_allowed);
}