aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/CodingStyle
diff options
context:
space:
mode:
authorJean Delvare <khali@linux-fr.org>2011-11-04 12:00:46 +0100
committerJean Delvare <khali@endymion.delvare>2011-11-04 12:00:46 +0100
commitda8ebe4e09ee5661f125a8401ade58baf226aa57 (patch)
treea336300b6568c72455c85eef4024630b2735cc57 /Documentation/CodingStyle
parenthwmon: (ibmaem) Make instance initializations independent (diff)
downloadlinux-dev-da8ebe4e09ee5661f125a8401ade58baf226aa57.tar.xz
linux-dev-da8ebe4e09ee5661f125a8401ade58baf226aa57.zip
hwmon: (ibmaem) Avoid repeated memory allocations
Preallocate a buffer for the response to sensor reads, and reuse it for each read instead of allocating a new one each time. This should be faster and should also avoid memory fragmentation. Signed-off-by: Jean Delvare <khali@linux-fr.org> Acked-by: Darrick J. Wong <djwong@us.ibm.com> Acked-by: Guenter Roeck <guenter.roeck@ericsson.com>
Diffstat (limited to 'Documentation/CodingStyle')
0 files changed, 0 insertions, 0 deletions