]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
smp: have smp_call_function_single() detect invalid CPUs
authorH. Peter Anvin <hpa@zytor.com>
Tue, 26 Aug 2008 00:07:14 +0000 (17:07 -0700)
committerH. Peter Anvin <hpa@zytor.com>
Tue, 26 Aug 2008 00:45:48 +0000 (17:45 -0700)
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>

No differences found