summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>2020-01-17 12:01:36 +0300
committerThomas Gleixner <tglx@linutronix.de>2020-01-24 22:40:09 +0300
commit67719ef25eeb2048b11befa6a757aeb3848b5df1 (patch)
tree07a32cb57014b1ca8b1e5c21c4bfea2c1f2946d9 /arch
parent5671d814dbd204b4ecc705045b5f1a647bff6f3b (diff)
downloadlinux-67719ef25eeb2048b11befa6a757aeb3848b5df1.tar.xz
smp: Add a smp_cond_func_t argument to smp_call_function_many()
on_each_cpu_cond_mask() allocates a new CPU mask. The newly allocated mask is a subset of the provided mask based on the conditional function. This memory allocation can be avoided by extending smp_call_function_many() with the conditional function and performing the remote function call based on the mask and the conditional function. Rename smp_call_function_many() to smp_call_function_many_cond() and add the smp_cond_func_t argument. If smp_cond_func_t is provided then it is used before invoking the function. Provide smp_call_function_many() with cond_func set to NULL. Let on_each_cpu_cond_mask() use smp_call_function_many_cond(). Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org> Link: https://lore.kernel.org/r/20200117090137.1205765-3-bigeasy@linutronix.de
Diffstat (limited to 'arch')
0 files changed, 0 insertions, 0 deletions