diff options
author | Sebastian Andrzej Siewior <bigeasy@linutronix.de> | 2025-02-26 12:10:57 +0300 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2025-02-26 18:07:59 +0300 |
commit | e3924279e5164d821fa2cbcf0c15e7345cb3508e (patch) | |
tree | 4fa85a163bba11ecfb6ed2d42ce8a6b5781649b9 /tools/perf/scripts/python/syscall-counts.py | |
parent | d082ecbc71e9e0bf49883ee4afd435a77a5101b6 (diff) | |
download | linux-e3924279e5164d821fa2cbcf0c15e7345cb3508e.tar.xz |
futex: Use a hashmask instead of hashsize
The global hash uses futex_hashsize to save the amount of the hash
buckets that have been allocated during system boot. On each
futex_hash() invocation this number is substracted by one to get the
mask. This can be optimized by saving directly the mask avoiding the
substraction on each futex_hash() invocation.
Rename futex_hashsize to futex_hashmask and save the mask of the
allocated hash map.
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Waiman Long <longman@redhat.com>
Link: https://lore.kernel.org/all/20250226091057.bX8vObR4@linutronix.de
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions