gpu: ion: Refactor locking
authorRebecca Schultz Zavin <rebecca@android.com>
Thu, 11 Oct 2012 19:46:05 +0000 (12:46 -0700)
committerArve Hjønnevåg <arve@android.com>
Mon, 1 Jul 2013 21:16:11 +0000 (14:16 -0700)
commit7572b1e72912783a7f660921bc66fe82d0a92952
tree49067cc5816003ce7e67e281f22bcd3bfaca4c2f
parentf43a4faa0e2a37748a395d395c844be734f56093
gpu: ion: Refactor locking

Removes contention for lock between allocate and free by reducing
the length of time the lock is held for.  Split out a seperate
lock to protect the list of heaps and replace it with a rwsem since
the list will most likely only be updated during initialization.

Change-Id: I3017ccaa2126c7a24ab22b18e1ee553983977c37
Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
drivers/gpu/ion/ion.c