mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-09-26 18:16:26 +00:00
smp: have smp_call_function_single() detect invalid CPUs
Have smp_call_function_single() return invalid CPU indicies and return -ENXIO. This function is already executed inside a get_cpu()..put_cpu() which locks out CPU removal, so rather than having the higher layers doing another layer of locking to guard against unplugged CPUs do the test here. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
This commit is contained in:
parent
2a61812af2
commit
f73be6dedf
1 changed files with 7 additions and 3 deletions
10
kernel/smp.c
10
kernel/smp.c
Loading…
Add table
Add a link
Reference in a new issue