]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
hwmon: (via-cputemp) Convert to hotplug state machine
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Fri, 18 Nov 2016 15:09:50 +0000 (16:09 +0100)
committerGuenter Roeck <linux@roeck-us.net>
Sat, 10 Dec 2016 05:54:27 +0000 (21:54 -0800)
commitdf60d7013c36f86f7653af387915019d7da49613
tree45c3240903a0b419b79c797ea77e69ef8574ad36
parent8017c0f2989f077a665bbf7881a1154ecd8334e7
hwmon: (via-cputemp) Convert to hotplug state machine

Install the callbacks via the state machine and let the core invoke the
callbacks on the already online CPUs. When the hotplug state is
unregistered the cleanup function is called for each cpu. So both cpu loops
in init() and exit() are not longer required.

Cc: Jean Delvare <jdelvare@suse.com>
Cc: Guenter Roeck <linux@roeck-us.net>
Cc: linux-hwmon@vger.kernel.org
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/via-cputemp.c