aboutsummaryrefslogtreecommitdiff
path: root/scripts/clang-tools/gen_compile_commands.py
diff options
context:
space:
mode:
authorNamhyung Kim <[email protected]>2024-08-29 23:51:49 -0700
committerArnaldo Carvalho de Melo <[email protected]>2024-08-30 09:57:47 -0300
commit05a5dd1dfd8fdeee6498875c2d78d4385d627bd6 (patch)
tree17b8cff0110711636b4f320ec731f6b1878c36a0 /scripts/clang-tools/gen_compile_commands.py
parent10d6c57c824e21b4cf8eda9491caea06edac9fd7 (diff)
perf lock contention: Simplify spinlock check
The LCB_F_SPIN bit is used for spinlock, rwlock and optimistic spinning in mutex. In get_tstamp_elem() it needs to check spinlock and rwlock only. As mutex sets the LCB_F_MUTEX, it can check those two bits and reduce the number of operations. Signed-off-by: Namhyung Kim <[email protected]> Cc: Adrian Hunter <[email protected]> Cc: Ian Rogers <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Kan Liang <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Song Liu <[email protected]> Cc: [email protected] Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'scripts/clang-tools/gen_compile_commands.py')
0 files changed, 0 insertions, 0 deletions