Skip to content
Commit f73be6de authored by H. Peter Anvin's avatar H. Peter Anvin
Browse files

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: default avatarH. Peter Anvin <hpa@zytor.com>
parent 2a61812a
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment