Searched hist:ded2b66615613093eeb83b81499bc270de8fc499 (Results 1 – 1 of 1) sorted by relevance
/linux/drivers/hwmon/ |
H A D | hwmon.c | diff ded2b66615613093eeb83b81499bc270de8fc499 Sun Mar 05 23:13:47 CET 2006 Mark M. Hoffman <mhoffman@lightlink.com> [PATCH] hwmon: add required idr locking
Add required locking around idr_ routines, retry the idr_pre_get/idr_get_new pair properly, and sprinkle in some likely/unlikely for good measure.
(Lack of idr locking didn't hurt when all callers were I2C clients, as the i2c-core serialized for us anyway. Now that we have non I2C hwmon drivers, this is truly necessary.)
Signed-off-by: Mark M. Hoffman <mhoffman@lightlink.com> Signed-off-by: Jean Delvare <khali@linux-fr.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
|