OMAP: DSS2: OMAPFB: Make lockdep happy

When more than one memory region needs to be lockd at the same time use
the memory region id to fix the order in which the locks are taken. Also
one needs to use the _nested() versions of the locking primitives. The
memory region id can serve as the lock class there as well.

Signed-off-by: Ville Syrjälä <ville.syrjala@nokia.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@nokia.com>
このコミットが含まれているのは:
Ville Syrjälä
2010-03-17 21:42:06 +02:00
committed by Tomi Valkeinen
コミット 3d84b65aa6
3個のファイルの変更36行の追加13行の削除

ファイルの表示

@@ -452,7 +452,7 @@ static ssize_t store_size(struct device *dev, struct device_attribute *attr,
rg = ofbi->region;
down_write(&rg->lock);
down_write_nested(&rg->lock, rg->id);
if (atomic_read(&rg->map_count)) {
r = -EBUSY;