Skip to content

Commit d43f17a

Browse files
Peter Zijlstraingomolnar
authored andcommitted
smp: Micro-optimize smp_call_function_many_cond()
Call the generic send_call_function_single_ipi() function, which will avoid the IPI when @last_cpu is idle. Signed-off-by: Peter Zijlstra <peterz@infradead.org> Signed-off-by: Ingo Molnar <mingo@kernel.org> Cc: linux-kernel@vger.kernel.org Signed-off-by: Ingo Molnar <mingo@kernel.org>
1 parent a5aa5ce commit d43f17a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

kernel/smp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -694,7 +694,7 @@ static void smp_call_function_many_cond(const struct cpumask *mask,
694694
* provided mask.
695695
*/
696696
if (nr_cpus == 1)
697-
arch_send_call_function_single_ipi(last_cpu);
697+
send_call_function_single_ipi(last_cpu);
698698
else if (likely(nr_cpus > 1))
699699
arch_send_call_function_ipi_mask(cfd->cpumask_ipi);
700700
}

0 commit comments

Comments
 (0)