aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorStephen Bates <[email protected]>2017-11-17 15:28:16 -0800
committerLinus Torvalds <[email protected]>2017-11-17 16:10:02 -0800
commit36a3d1dd4e16bcd0d2ddfb4a2ec7092f0ae0d931 (patch)
tree751e5b94e03ed0001a4e0e7bfa9f1f1204f34270 /tools/perf/scripts/python/export-to-sqlite.py
parente813a614007e3a8a7b53d976e86d9a20f21f81ad (diff)
lib/genalloc.c: make the avail variable an atomic_long_t
If the amount of resources allocated to a gen_pool exceeds 2^32 then the avail atomic overflows and this causes problems when clients try and borrow resources from the pool. This is only expected to be an issue on 64 bit systems. Add the <linux/atomic.h> header to pull in atomic_long* operations. So that 32 bit systems continue to use atomic32_t but 64 bit systems can use atomic64_t. Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Stephen Bates <[email protected]> Reviewed-by: Logan Gunthorpe <[email protected]> Reviewed-by: Mathieu Desnoyers <[email protected]> Reviewed-by: Daniel Mentz <[email protected]> Cc: Jonathan Corbet <[email protected]> Cc: Andrew Morton <[email protected]> Cc: Will Deacon <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions