diff options
author | 2023-05-19 12:12:06 +0200 | |
---|---|---|
committer | 2023-05-23 18:17:32 +0200 | |
commit | b6405f0829d7b1dd926ba3ca5f691cab835abfaa (patch) | |
tree | a2e61c72d7173edcb571bf28d4dae6a946c01867 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | parisc: Flush gatt writes and adjust gatt mask in parisc_agp_mask_memory() (diff) | |
download | wireguard-linux-b6405f0829d7b1dd926ba3ca5f691cab835abfaa.tar.xz wireguard-linux-b6405f0829d7b1dd926ba3ca5f691cab835abfaa.zip |
parisc: Use num_present_cpus() in alternative patching code
When patching the kernel code some alternatives depend on SMP vs. !SMP.
Use the value of num_present_cpus() instead of num_online_cpus() to
decide, otherwise we may run into issues if and additional CPU is
enabled after having loaded a module while only one CPU was enabled.
Signed-off-by: Helge Deller <deller@gmx.de>
Cc: <stable@vger.kernel.org> # v6.1+
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions