aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorGao Xiang <[email protected]>2018-11-23 01:21:46 +0800
committerGreg Kroah-Hartman <[email protected]>2018-11-23 10:53:08 +0100
commit48d4bf3b05a683539a43faa02c6f3091c715c9cc (patch)
treec1bd03f7291e9aa6044725dd30b9ac9b315912a4 /tools/perf/scripts/python
parent948bbdb1818b7ad6e539dad4fbd2dd4650793ea9 (diff)
staging: erofs: separate into init_once / always
`z_erofs_vle_workgroup' is heavily generated in the decompression, for example, it resets 32 bytes redundantly for 64-bit platforms even through Z_EROFS_VLE_INLINE_PAGEVECS + Z_EROFS_CLUSTER_MAX_PAGES, default 4, pages are stored in `z_erofs_vle_workgroup'. As an another example, `struct mutex' takes 72 bytes for our kirin 64-bit platforms, it's unnecessary to be reseted at first and be initialized each time. Let's avoid filling all `z_erofs_vle_workgroup' with 0 at first since most fields are reinitialized to meaningful values later, and pagevec is no need to initialized at all. Reviewed-by: Chao Yu <[email protected]> Signed-off-by: Gao Xiang <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions