[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <4CDB2148.8080404@euromail.se>
Date: Wed, 10 Nov 2010 23:48:40 +0100
From: Henrik Rydberg <rydberg@...omail.se>
To: Guenter Roeck <guenter.roeck@...csson.com>
CC: Jean Delvare <khali@...ux-fr.org>, lm-sensors@...sensors.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH v4] hwmon: (applesmc) Introduce a register lookup table
On 11/10/2010 11:47 PM, Guenter Roeck wrote:
> From: Henrik Rydberg <rydberg@...omail.se>
>
> One main problem with the current driver is the inability to quickly
> search for supported keys, resulting in detailed feature maps per
> machine model which are cumbersome to maintain.
>
> This patch adds a register lookup table, which enables binary search
> for supported keys. The lookup also reduces the io frequency, so the
> original mutex is replaced by locks around the actual io.
>
> Signed-off-by: Henrik Rydberg <rydberg@...omail.se>
> [guenter.roeck@...csson.com: Added value range check to key_at_index_store()]
> Signed-off-by: Guenter Roeck <guenter.roeck@...csson.com>
> ---
> Patch as applied, with added value range check to applesmc_key_at_index_store().
Works nicely, much obliged. It's a wrap. :-)
Thanks,
Henrik
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists