spin_lock_nested(l2, SINGLE_DEPTH_NESTING);
}
-static void task_numa_group(struct task_struct *p, int cpupid, int flags)
+static void task_numa_group(struct task_struct *p, int cpupid, int flags,
+ int *priv)
{
struct numa_group *grp, *my_grp;
struct task_struct *tsk;
if (flags & TNF_SHARED)
join = true;
+ /* Update priv based on whether false sharing was detected */
+ *priv = !join;
+
if (join && !get_numa_group(grp))
join = false;
} else {
priv = cpupid_match_pid(p, last_cpupid);
if (!priv && !(flags & TNF_NO_GROUP))
- task_numa_group(p, last_cpupid, flags);
+ task_numa_group(p, last_cpupid, flags, &priv);
}
/*