diff options
| author | Thomas Gleixner <tglx@linutronix.de> | 2024-02-14 00:06:06 +0300 |
|---|---|---|
| committer | Thomas Gleixner <tglx@linutronix.de> | 2024-02-16 00:07:44 +0300 |
| commit | 5e40fb2d4a4c7503cab4f923b7d985dbcf583581 (patch) | |
| tree | 0e4603206dc66445ad67fb4f33300163f1a60471 /tools/perf/scripts/python/net_dropmonitor.py | |
| parent | 882e0cff9ef340e7a47659a9aab9da64f4b9b847 (diff) | |
| download | linux-5e40fb2d4a4c7503cab4f923b7d985dbcf583581.tar.xz | |
x86/cpu/topology: Simplify cpu_mark_primary_thread()
No point in creating a mask via fls(). smp_num_siblings is guaranteed to be
a power of 2. So just using (smp_num_siblings - 1) has the same effect.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Tested-by: Michael Kelley <mhklinux@outlook.com>
Tested-by: Sohil Mehta <sohil.mehta@intel.com>
Link: https://lore.kernel.org/r/20240213210252.791176581@linutronix.de
Diffstat (limited to 'tools/perf/scripts/python/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions
