From: Jean Delvare Date: Fri, 4 Nov 2011 11:00:46 +0000 (+0100) Subject: hwmon: (ibmaem) Avoid repeated memory allocations X-Git-Tag: v3.2-rc1~64^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=da8ebe4e09ee5661f125a8401ade58baf226aa57;p=pandora-kernel.git 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 Acked-by: Darrick J. Wong Acked-by: Guenter Roeck --- Reading git-diff-tree failed