ion: index client->handles rbtree by buffer
authorColin Cross <ccross@android.com>
Wed, 21 Aug 2013 18:23:12 +0000 (11:23 -0700)
committerColin Cross <ccross@android.com>
Fri, 20 Sep 2013 04:03:33 +0000 (23:03 -0500)
commit002119eeb221cf1efd7afda836da768ff1cd0ad9
tree29d053b0dabbce9f2427408ca4137de130783b9f
parent1126d98d8e34d771afcc72ce5d1c37ad4d474402
ion: index client->handles rbtree by buffer

The only remaining users of the client->handles rbtree are
iterating through it like a list.  Keep the rbtree, but change
its index to be the buffer address instead of the handle address,
which makes ion_handle_lookup a fast rbtree search.

Change-Id: Ie7d974b3a5d9831c0d664de85ddae8db3c3abdf9
Signed-off-by: Colin Cross <ccross@android.com>
drivers/gpu/ion/ion.c