Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 37c5f719 authored by Heiko Carstens's avatar Heiko Carstens Committed by Martin Schwidefsky
Browse files

[S390] Fix smp_call_function_mask semantics.



Make sure func isn't called on the local cpu just like on all other
architectures that implement this function.

Signed-off-by: default avatarHeiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: default avatarMartin Schwidefsky <schwidefsky@de.ibm.com>
parent a817a61f
Loading
Loading
Loading
Loading
+3 −4
Original line number Original line Diff line number Diff line
@@ -225,12 +225,11 @@ EXPORT_SYMBOL(smp_call_function_single);
 * You must not call this function with disabled interrupts or from a
 * You must not call this function with disabled interrupts or from a
 * hardware interrupt handler or from a bottom half handler.
 * hardware interrupt handler or from a bottom half handler.
 */
 */
int
int smp_call_function_mask(cpumask_t mask, void (*func)(void *), void *info,
smp_call_function_mask(cpumask_t mask,
			void (*func)(void *), void *info,
			   int wait)
			   int wait)
{
{
	preempt_disable();
	preempt_disable();
	cpu_clear(smp_processor_id(), mask);
	__smp_call_function_map(func, info, 0, wait, mask);
	__smp_call_function_map(func, info, 0, wait, mask);
	preempt_enable();
	preempt_enable();
	return 0;
	return 0;