aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorAneesh Kumar K.V <[email protected]>2017-08-28 14:05:44 +0530
committerMichael Ellerman <[email protected]>2017-08-31 14:26:39 +1000
commit22259a6e800cdb8e06e65432fcd019983214be0c (patch)
tree561351757f0226f921f7df614fe75efe8d5f1dcd /tools/perf/scripts/python
parent2392c8c8c0450293625dbef19ff5e206fb7b6749 (diff)
powerpc/mm/cxl: Add barrier when setting mm cpumask
We need to add memory barrier so that the page table walk doesn't happen before the cpumask is set and made visible to the other cpus. We need to use a sync here instead of lwsync because lwsync is not sufficient for store/load ordering. We also need to add an if (mm) check so that we do the right thing when called with a kernel context. For kernel context, we have mm = NULL. W.r.t kernel address we can skip setting the mm cpumask. Fixes: 0f4bc0932e ("powerpc/mm/cxl: Add the fault handling cpu to mm cpumask") Cc: Andrew Donnellan <[email protected]> Reported-by: Benjamin Herrenschmidt <[email protected]> Reported-by: Dan Carpenter <[email protected]> Signed-off-by: Aneesh Kumar K.V <[email protected]> Acked-by: Andrew Donnellan <[email protected]> Signed-off-by: Michael Ellerman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions