summaryrefslogtreecommitdiff
path: root/drivers/hwmon/Kconfig
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2016-11-22 17:42:06 +0000
committerGuenter Roeck <linux@roeck-us.net>2016-12-09 21:54:13 -0800
commit712668460594294d74c13f2a023398a597fbe95f (patch)
treea58b1e0c9d064ed691bc38c9c362a115244eca04 /drivers/hwmon/Kconfig
parent2195c31b127def509c806fe8a9d3b4092a28ce31 (diff)
downloadlwn-712668460594294d74c13f2a023398a597fbe95f.tar.gz
lwn-712668460594294d74c13f2a023398a597fbe95f.zip
hwmon: (coretemp) Simplify package management
Keeping track of the per package platform devices requires an extra object, which is held in a linked list. The maximum number of packages is known at init() time. So the extra object and linked list management can be replaced by an array of platform device pointers in which the per package devices pointers can be stored. Lookup becomes a simple array lookup instead of a list walk. The mutex protecting the list can be removed as well because the array is only accessed from cpu hotplug callbacks which are already serialized. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'drivers/hwmon/Kconfig')
0 files changed, 0 insertions, 0 deletions