]> git.baikalelectronics.ru Git - kernel.git/commit
Add generic helpers for arch IPI function calls
authorJens Axboe <jens.axboe@oracle.com>
Thu, 26 Jun 2008 09:21:34 +0000 (11:21 +0200)
committerJens Axboe <jens.axboe@oracle.com>
Thu, 26 Jun 2008 09:21:34 +0000 (11:21 +0200)
commit7cfcdde15272546fc540abbdaf345d4a7aa97ee7
tree9fd3cfa9825e8cb0b7e08dfae85cc9a722442849
parent34246e4c502ac282633f3eafc395e419462ff184
Add generic helpers for arch IPI function calls

This adds kernel/smp.c which contains helpers for IPI function calls. In
addition to supporting the existing smp_call_function() in a more efficient
manner, it also adds a more scalable variant called smp_call_function_single()
for calling a given function on a single CPU only.

The core of this is based on the x86-64 patch from Nick Piggin, lots of
changes since then. "Alan D. Brunelle" <Alan.Brunelle@hp.com> has
contributed lots of fixes and suggestions as well. Also thanks to
Paul E. McKenney <paulmck@linux.vnet.ibm.com> for reviewing RCU usage
and getting rid of the data allocation fallback deadlock.

Acked-by: Ingo Molnar <mingo@elte.hu>
Reviewed-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
arch/Kconfig
arch/sparc64/kernel/smp.c
include/linux/smp.h
init/main.c
kernel/Makefile
kernel/smp.c [new file with mode: 0644]