iommu/tegra: Don't call alloc_pdir with as->lock
authorJoerg Roedel <joerg.roedel@amd.com>
Tue, 17 Jul 2012 09:47:14 +0000 (11:47 +0200)
committerJoerg Roedel <joerg.roedel@amd.com>
Tue, 17 Jul 2012 09:47:14 +0000 (11:47 +0200)
Instead of taking as->lock before calling alloc_pdir() and
releasing it in that function to allocate memory, just take
the lock only in the alloc_pdir function and run the loop
without any lock held. This simplifies the complicated
lock->unlock->alloc->lock->unlock sequence into
alloc->lock->unlock.

Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>

No differences found