[lm-sensors] [PATCH] hwmon: (max1111) Avoid extra memory allocations

Guenter Roeck guenter.roeck at ericsson.com
Tue Jul 12 18:40:33 CEST 2011


On Tue, Jul 12, 2011 at 05:01:52AM -0400, Jean Delvare wrote:
> We can allocate the tx and rx buffers as part of our data structure.
> Doing so is faster and spares memory.
> 
> Signed-off-by: Jean Delvare <khali at linux-fr.org>
> ---
> Can anyone with a MAX1111 device try and report please?
> 
Reason for using allocated buffers may have been to ensure (word/cache line) alignment.
Not really sure if that is a valid argument with 1/2 byte buffers, though.

Guenter




More information about the lm-sensors mailing list