On 11/10/2010 11:47 PM, Guenter Roeck wrote: > From: Henrik Rydberg <rydberg@xxxxxxxxxxx> > > 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@xxxxxxxxxxx> > [guenter.roeck@xxxxxxxxxxxx: Added value range check to key_at_index_store()] > Signed-off-by: Guenter Roeck <guenter.roeck@xxxxxxxxxxxx> > --- > Patch as applied, with added value range check to applesmc_key_at_index_store(). Works nicely, much obliged. It's a wrap. :-) Thanks, Henrik _______________________________________________ lm-sensors mailing list lm-sensors@xxxxxxxxxxxxxx http://lists.lm-sensors.org/mailman/listinfo/lm-sensors