hwmon: Use smp_call_on_cpu() for dell-smm i8k
authorJuergen Gross <jgross@suse.com>
Mon, 29 Aug 2016 06:48:47 +0000 (08:48 +0200)
committerIngo Molnar <mingo@kernel.org>
Mon, 5 Sep 2016 11:52:41 +0000 (13:52 +0200)
commit27046a3ffbb01ba715e6236c170701c84759b61d
treea14915541849c1dc9355a176ef204d1cbd7580d6
parente23f22b5cb9e44da24cb8494707536211adff8d1
hwmon: Use smp_call_on_cpu() for dell-smm i8k

Use the smp_call_on_cpu() function to call system management
mode on CPU 0.
Make call secure by adding get_online_cpus() to avoid e.g. suspend
resume cycles in between.

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-7-git-send-email-jgross@suse.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
drivers/hwmon/dell-smm-hwmon.c