Skip to content

Commit d43f17a

Browse files
Peter ZijlstraIngo Molnar
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 <[email protected]> Signed-off-by: Ingo Molnar <[email protected]> Cc: [email protected] Signed-off-by: Ingo Molnar <[email protected]>
1 parent a5aa5ce commit d43f17a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)