iommu/exynos: Change rwlock to spinlock
authorCho KyongHo <pullip.cho@samsung.com>
Mon, 12 May 2014 06:14:57 +0000 (11:44 +0530)
committerJoerg Roedel <jroedel@suse.de>
Tue, 13 May 2014 17:12:55 +0000 (19:12 +0200)
commit9d4e7a24d77a05fb5c4e4121051a8d80501c74d3
tree73cefb21d4adc5b22747a19aafb86813889f3e4c
parent1fab7fa7230fa0422ca81cea7d1bfbf3f9b0d3f9
iommu/exynos: Change rwlock to spinlock

Since acquiring read_lock is not more frequent than write_lock, it is
not beneficial to use rwlock, this commit changes rwlock to spinlock.

Reviewed-by: Grant Grundler <grundler@chromium.org>
Signed-off-by: Cho KyongHo <pullip.cho@samsung.com>
Signed-off-by: Shaik Ameer Basha <shaik.ameer@samsung.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/exynos-iommu.c