aboutsummaryrefslogtreecommitdiffstats
path: root/lib/crypto/mpi/mpiutil.c
diff options
context:
space:
mode:
authorYury Norov [NVIDIA] <[email protected]>2025-06-23 00:00:06 +0000
committerThomas Gleixner <[email protected]>2025-06-26 21:46:34 +0000
commit5f295519b42f100c735a1e8e1a70060e26f30c3f (patch)
treec864b2ebfd2a9b016d50cab7f48f430b07612a7a /lib/crypto/mpi/mpiutil.c
parentsmp: Fix typo in comment for raw_smp_processor_id() (diff)
downloadkernel-5f295519b42f100c735a1e8e1a70060e26f30c3f.tar.gz
kernel-5f295519b42f100c735a1e8e1a70060e26f30c3f.zip
smp: Improve locality in smp_call_function_any()
smp_call_function_any() tries to make a local call as it's the cheapest option, or switches to a CPU in the same node. If it's not possible, the algorithm gives up and searches for any CPU, in a numerical order. Instead, it can search for the best CPU based on NUMA locality, including the 2nd nearest hop (a set of equidistant nodes), and higher. sched_numa_find_nth_cpu() does exactly that, and also helps to drop most of the housekeeping code. Signed-off-by: Yury Norov [NVIDIA] <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Link: https://lore.kernel.org/all/[email protected]
Diffstat (limited to 'lib/crypto/mpi/mpiutil.c')
0 files changed, 0 insertions, 0 deletions