diff options
| author | Mark Rutland <[email protected]> | 2021-05-25 15:02:01 +0100 |
|---|---|---|
| committer | Peter Zijlstra <[email protected]> | 2021-05-26 13:20:49 +0200 |
| commit | 201e2c1bbe659720913ed5272a2c44e6ab646c8a (patch) | |
| tree | 7f884d88ba2bea8200b642c42ec72f4ce569f429 /tools/perf/scripts/python | |
| parent | 9be85de97786a75f62080de1c0c13656f65cba84 (diff) | |
locking/atomic: net: use linux/atomic.h for xchg & cmpxchg
As xchg*() and cmpxchg*() may be instrumented by atomic-instrumented.h,
it's necessary to include <linux/atomic.h> to use these, rather than
<asm/cmpxchg.h>, which is effectively an arch-internal header.
In a couple of places we include <asm/cmpxchg.h>, but get away with this
as <linux/atomic.h> gets pulled in inidrectly by another include. Before
we convert more architectures to use atomic-instrumented.h, let's fix
these up to use <linux/atomic.h> so that we don't make things more
fragile.
Signed-off-by: Mark Rutland <[email protected]>
Cc: Boqun Feng <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Will Deacon <[email protected]>
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions