summaryrefslogtreecommitdiffstats
path: root/drivers/phy/phy-exynos5250-sata.c
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2016-10-24 14:40:04 +0200
committerDavid S. Miller <davem@davemloft.net>2016-10-27 22:16:09 +0200
commit2ae0f17df1cd52aafd1ab0415ea1f1dd56dc0e2a (patch)
tree492385624b87bc97c0ace5f8439606779de71802 /drivers/phy/phy-exynos5250-sata.c
parentgenetlink: statically initialize families (diff)
downloadlinux-2ae0f17df1cd52aafd1ab0415ea1f1dd56dc0e2a.tar.xz
linux-2ae0f17df1cd52aafd1ab0415ea1f1dd56dc0e2a.zip
genetlink: use idr to track families
Since generic netlink family IDs are small integers, allocated densely, IDR is an ideal match for lookups. Replace the existing hand-written hash-table with IDR for allocation and lookup. This lets the families only be written to once, during register, since the list_head can be removed and removal of a family won't cause any writes. It also slightly reduces the code size (by about 1.3k on x86-64). Signed-off-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/phy/phy-exynos5250-sata.c')
0 files changed, 0 insertions, 0 deletions