aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorPaul Burton <[email protected]>2019-10-01 21:53:23 +0000
committerPaul Burton <[email protected]>2019-10-07 09:42:34 -0700
commit40e784b4d4bc31dee5f1db6a20287777d3aaa4dc (patch)
tree47ab76acb9d27ec4d5300286ac2ffcb427a3188f /tools/perf/scripts/python/bin
parent77d281b7966e476927a45c5fb272d720aa75bb95 (diff)
MIPS: atomic: Unify 32b & 64b sub_if_positive
Unify the definitions of atomic_sub_if_positive() & atomic64_sub_if_positive() using a macro like we do for most other atomic functions. This allows us to share the implementation ensuring consistency between the two. Notably this provides the appropriate loongson3_war barriers in the atomic64_sub_if_positive() case which were previously missing. The code is rearranged a little to handle the !kernel_uses_llsc case first in order to de-indent the LL/SC case & allow us not to go over 80 characters per line. Signed-off-by: Paul Burton <[email protected]> Cc: [email protected] Cc: Huacai Chen <[email protected]> Cc: Jiaxun Yang <[email protected]> Cc: [email protected]
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions