summaryrefslogtreecommitdiff
path: root/Documentation/RCU
diff options
context:
space:
mode:
authorJean Delvare <khali@linux-fr.org>2006-07-01 15:17:38 (GMT)
committerGreg Kroah-Hartman <gregkh@suse.de>2006-09-26 22:38:50 (GMT)
commitf3b3aadbbd66d8a020550b01b37d9b1ea559f2c3 (patch)
treeeea7ec792ffd33df9eb2c2933fd78ea201cfe6c5 /Documentation/RCU
parent9455e4c9abf76fa02170743859b2ddbb484e7fdf (diff)
downloadlinux-fsl-qoriq-f3b3aadbbd66d8a020550b01b37d9b1ea559f2c3.tar.xz
i2c-dev: Use a list for data storage
i2c-dev: Use a list for data storage Use a list instead of a static array for storing the i2c-dev data. Given that most systems have less than 10 i2c busses, most of the space was wasted, so this saves around 1 kB of memory (2 kB on 64-bit archs.) The drawback is that lookup was in O(1) and is now in O(N), but given that the values of N are always small, I don't think this is a problem. Signed-off-by: Jean Delvare <khali@linux-fr.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'Documentation/RCU')
0 files changed, 0 insertions, 0 deletions