From: "Darrick J. Wong" Date: Tue, 23 Aug 2011 16:58:52 +0000 Subject: Re: [lm-sensors] [PATCH v2 3/3] hwmon: (ibmaem) Avoid repeated Message-Id: <20110823165852.GA20579@tux1.beaverton.ibm.com> List-Id: References: <20110820145823.7c5b38a1@endymion.delvare> In-Reply-To: <20110820145823.7c5b38a1@endymion.delvare> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: lm-sensors@vger.kernel.org On Sat, Aug 20, 2011 at 09:34:12AM -0700, Guenter Roeck wrote: > On Sat, Aug 20, 2011 at 08:58:23AM -0400, Jean Delvare wrote: > > 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 > > Cc: Darrick J. Wong > > Cc: Guenter Roeck > > Acked-by: Guenter Roeck Acked-by: Darrick J. Wong _______________________________________________ lm-sensors mailing list lm-sensors@lm-sensors.org http://lists.lm-sensors.org/mailman/listinfo/lm-sensors