Revision 1e474b28e78897d0d170fab3b28ba683149cb9ea authored by Paul E. McKenney on 05 February 2020, 14:34:09 UTC, committed by Thomas Gleixner on 07 February 2020, 14:34:12 UTC
In CONFIG_SMP=y kernels, smp_call_function_single() returns -ENXIO when
invoked for a non-existent CPU.  In contrast, in CONFIG_SMP=n kernels,
a splat is emitted and smp_call_function_single() otherwise silently
ignores its "cpu" argument, instead pretending that the caller intended
to have something happen on CPU 0.  Given that there is now code that
expects smp_call_function_single() to return an error if a bad CPU was
specified, this difference in semantics needs to be addressed.

Bring the semantics of the CONFIG_SMP=n version of
smp_call_function_single() into alignment with its CONFIG_SMP=y
counterpart.

Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lkml.kernel.org/r/20200205143409.GA7021@paulmck-ThinkPad-P72

1 parent 25a3a15
History
File Mode Size
Kconfig -rw-r--r-- 9.6 KB
Makefile -rw-r--r-- 737 bytes
acorn.c -rw-r--r-- 12.1 KB
acorn.h -rw-r--r-- 527 bytes
aix.c -rw-r--r-- 6.4 KB
aix.h -rw-r--r-- 98 bytes
amiga.c -rw-r--r-- 3.7 KB
amiga.h -rw-r--r-- 128 bytes
atari.c -rw-r--r-- 4.1 KB
atari.h -rw-r--r-- 1.1 KB
check.c -rw-r--r-- 4.2 KB
check.h -rw-r--r-- 1.2 KB
cmdline.c -rw-r--r-- 3.6 KB
cmdline.h -rw-r--r-- 96 bytes
efi.c -rw-r--r-- 22.3 KB
efi.h -rw-r--r-- 3.7 KB
ibm.c -rw-r--r-- 9.4 KB
ibm.h -rw-r--r-- 86 bytes
karma.c -rw-r--r-- 1.1 KB
karma.h -rw-r--r-- 163 bytes
ldm.c -rw-r--r-- 42.1 KB
ldm.h -rw-r--r-- 4.7 KB
mac.c -rw-r--r-- 3.6 KB
mac.h -rw-r--r-- 1.3 KB
msdos.c -rw-r--r-- 16.0 KB
msdos.h -rw-r--r-- 163 bytes
osf.c -rw-r--r-- 1.9 KB
osf.h -rw-r--r-- 162 bytes
sgi.c -rw-r--r-- 2.3 KB
sgi.h -rw-r--r-- 167 bytes
sun.c -rw-r--r-- 3.8 KB
sun.h -rw-r--r-- 208 bytes
sysv68.c -rw-r--r-- 1.9 KB
sysv68.h -rw-r--r-- 101 bytes
ultrix.c -rw-r--r-- 1.2 KB
ultrix.h -rw-r--r-- 129 bytes

back to top