smp: Add function to execute a function synchronously on a CPU
authorJuergen Gross <jgross@suse.com>
Mon, 29 Aug 2016 06:48:44 +0000 (08:48 +0200)
committerIngo Molnar <mingo@kernel.org>
Mon, 5 Sep 2016 11:52:39 +0000 (13:52 +0200)
commitdf8ce9d78a4e7fbe7ddfd8ccee3ecaaa0013e883
treea9d0a3e96a445aefe77de0dfadbd521df2499f5a
parent47ae4b05d0fa2f2a998ebaf34d2dcbffca56a9db
smp: Add function to execute a function synchronously on a CPU

On some hardware models (e.g. Dell Studio 1555 laptop) some hardware
related functions (e.g. SMIs) are to be executed on physical CPU 0
only. Instead of open coding such a functionality multiple times in
the kernel add a service function for this purpose. This will enable
the possibility to take special measures in virtualized environments
like Xen, too.

Signed-off-by: Juergen Gross <jgross@suse.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Douglas_Warzecha@dell.com
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: akataria@vmware.com
Cc: boris.ostrovsky@oracle.com
Cc: chrisw@sous-sol.org
Cc: david.vrabel@citrix.com
Cc: hpa@zytor.com
Cc: jdelvare@suse.com
Cc: jeremy@goop.org
Cc: linux@roeck-us.net
Cc: pali.rohar@gmail.com
Cc: rusty@rustcorp.com.au
Cc: virtualization@lists.linux-foundation.org
Cc: xen-devel@lists.xenproject.org
Link: http://lkml.kernel.org/r/1472453327-19050-4-git-send-email-jgross@suse.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
include/linux/smp.h
kernel/smp.c
kernel/up.c