diff options
author | Kirill Artamonov <kartamonov@nvidia.com> | 2011-02-15 01:07:20 +0200 |
---|---|---|
committer | Varun Colbert <vcolbert@nvidia.com> | 2011-02-16 00:10:30 -0800 |
commit | 2e25fa9c17c2863c44a4c207e68e6480ff09f1ac (patch) | |
tree | 681d03d8b2f39367acebbe7e2362822f7f4edf63 /drivers/video/tegra/nvmap/nvmap.c | |
parent | d3b07f3a86353a37900a5928d1af518b01469b13 (diff) |
video: tegra: nvmap: replace mutex with spinlock
There are places where nvmap_free_handle_id is called
when interrupts are disabled and mutex cannot be used as
nvmap handle lock.
Change-Id: Icc220fe627c08f21c677d936a54f70c818dc8e8c
Reviewed-on: http://git-master/r/19489
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>
Diffstat (limited to 'drivers/video/tegra/nvmap/nvmap.c')
-rw-r--r-- | drivers/video/tegra/nvmap/nvmap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/video/tegra/nvmap/nvmap.c b/drivers/video/tegra/nvmap/nvmap.c index 00b9a5adb49f..46d3386059b6 100644 --- a/drivers/video/tegra/nvmap/nvmap.c +++ b/drivers/video/tegra/nvmap/nvmap.c @@ -579,9 +579,9 @@ unsigned long nvmap_handle_address(struct nvmap_client *c, unsigned long id) h = nvmap_get_handle_id(c, id); if (!h) return -EPERM; - mutex_lock(&h->lock); + spin_lock(&h->lock); phys = handle_phys(h); - mutex_unlock(&h->lock); + spin_unlock(&h->lock); nvmap_handle_put(h); return phys; |