summaryrefslogtreecommitdiffstats
path: root/net/dns_resolver/internal.h
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 /net/dns_resolver/internal.h
parent2195c31b127def509c806fe8a9d3b4092a28ce31 (diff)
downloadop-kernel-dev-712668460594294d74c13f2a023398a597fbe95f.zip
op-kernel-dev-712668460594294d74c13f2a023398a597fbe95f.tar.gz
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 'net/dns_resolver/internal.h')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud