summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>2023-04-20 22:27:24 +0200
committerWill Deacon <will@kernel.org>2023-06-05 14:53:04 +0100
commitf818947a06183dee7c2afc6648c75149586bf288 (patch)
tree192851a30433d0c0106482f0d2ebd7ada070213e /tools/perf/scripts/python/export-to-sqlite.py
parent44c026a73be8038f03dbdeef028b642880cf1511 (diff)
perf/arm-cci: Slightly optimize cci_pmu_sync_counters()
When the 'mask' bitmap is cleared, it is better to use its full maximum size instead of only the needed size. This lets the compiler optimize it because the size is now known at compile time. HW_CNTRS_MAX is small (i.e. currently 9), so a call to memset() is saved. Also, as 'mask' is local to the function, the non-atomic __set_bit() can also safely be used here. Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr> Link: https://lore.kernel.org/r/88d4e20d595f771396e9d558c1587eb4494057db.1682022422.git.christophe.jaillet@wanadoo.fr Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions