summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/exported-sql-viewer.py
diff options
context:
space:
mode:
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>2022-11-25 15:23:57 +0300
committerJakub Kicinski <kuba@kernel.org>2022-12-01 07:42:19 +0300
commit2450d7d93fd2424dfacbf4aebf3fa8829df9d16e (patch)
tree2a9574ee63b4b1210f961f2ee8f7d2c4896d78ec /tools/perf/scripts/python/exported-sql-viewer.py
parent91a7de85600d5dfa272cea3cef83052e067dc0ab (diff)
downloadlinux-2450d7d93fd2424dfacbf4aebf3fa8829df9d16e.tar.xz
octeontx2-af: Fix a potentially spurious error message
When this error message is displayed, we know that the all the bits in the bitmap are set. So, bitmap_weight() will return the number of bits of the bitmap, which is 'table->tot_ids'. It is unlikely that a bit will be cleared between mutex_unlock() and dev_err(), but, in order to simplify the code and avoid this possibility, just take 'table->tot_ids'. Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr> Link: https://lore.kernel.org/r/5ce01c402f86412dc57884ff0994b63f0c5b3871.1669378798.git.christophe.jaillet@wanadoo.fr Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions