diff options
author | Uros Bizjak <[email protected]> | 2024-10-07 10:56:28 +0200 |
---|---|---|
committer | Steven Rostedt (Google) <[email protected]> | 2024-10-09 19:59:49 -0400 |
commit | eb887c4567d1b0e7684c026fe7df44afa96589e6 (patch) | |
tree | 7dd9dda1a664633832caeb06abdd1d11197c89cd /rust/kernel/lib.rs | |
parent | afe5960dc208fe069ddaaeb0994d857b24ac19d1 (diff) |
tracing: Use atomic64_inc_return() in trace_clock_counter()
Use atomic64_inc_return(&ref) instead of atomic64_add_return(1, &ref)
to use optimized implementation and ease register pressure around
the primitive for targets that implement optimized variant.
Cc: Steven Rostedt <[email protected]>
Cc: Masami Hiramatsu <[email protected]>
Cc: Mathieu Desnoyers <[email protected]>
Link: https://lore.kernel.org/[email protected]
Signed-off-by: Uros Bizjak <[email protected]>
Signed-off-by: Steven Rostedt (Google) <[email protected]>
Diffstat (limited to 'rust/kernel/lib.rs')
0 files changed, 0 insertions, 0 deletions