From: Mark M. Hoffman Date: Sun, 5 Mar 2006 22:13:47 +0000 (+0100) Subject: [PATCH] hwmon: add required idr locking X-Git-Tag: v2.6.17-rc1~997^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ded2b66615613093eeb83b81499bc270de8fc499;p=pandora-kernel.git [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 Signed-off-by: Jean Delvare Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed