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

Commit d9c6d691 authored by Andi Kleen's avatar Andi Kleen Committed by Linus Torvalds
Browse files

x86_64: Don't use softirq safe locks in smp_call_function



It is not fully softirq safe anyways.

Can't do a WARN_ON unfortunately because it could trigger in the
panic case.

Signed-off-by: default avatarAndi Kleen <ak@suse.de>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent af3e9a2e
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -386,9 +386,9 @@ int smp_call_function_single (int cpu, void (*func) (void *info), void *info,
		return 0;
		return 0;
	}
	}


	spin_lock_bh(&call_lock);
	spin_lock(&call_lock);
	__smp_call_function_single(cpu, func, info, nonatomic, wait);
	__smp_call_function_single(cpu, func, info, nonatomic, wait);
	spin_unlock_bh(&call_lock);
	spin_unlock(&call_lock);
	put_cpu();
	put_cpu();
	return 0;
	return 0;
}
}