diff options
author | Sebastian Andrzej Siewior <[email protected]> | 2020-05-27 22:11:18 +0200 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2020-05-28 10:31:10 +0200 |
commit | ed19f19256be2949af1ab5634e62178d30a355c2 (patch) | |
tree | 5a4650415b231d322b538b6d9cc93151628fa4d7 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 3e92fd7bd2b8418b53cb7304855b8b69bedbe2b4 (diff) |
zram: Allocate struct zcomp_strm as per-CPU memory
zcomp::stream is a per-CPU pointer, pointing to struct zcomp_strm
which contains two pointers. Having struct zcomp_strm allocated
directly as per-CPU memory would avoid one additional memory
allocation and a pointer dereference. This also simplifies the
addition of a local_lock to struct zcomp_strm.
Allocate zcomp::stream directly as per-CPU memory.
Signed-off-by: Sebastian Andrzej Siewior <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
Acked-by: Peter Zijlstra <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions