gpu: ion: Switch heap rbtree to a prio list
authorRebecca Schultz Zavin <rebecca@android.com>
Thu, 15 Nov 2012 18:36:10 +0000 (10:36 -0800)
committerArve Hjønnevåg <arve@android.com>
Mon, 1 Jul 2013 21:16:16 +0000 (14:16 -0700)
commit98bdf10447930d3edbf6ed0f8678368fca9c8034
tree98c89605d403ae06c5d28b9515a3ad97c2ec725b
parent29ec2f78e83e60d2e3b19bac90bc6ba3e304b544
gpu: ion: Switch heap rbtree to a prio list

Switches the rbtree tree of heaps for a plist.  This significantly
simplifies the code and the list is small and is modified only at
first boot so the rbtree is unnecessary.  This also switches
the traversal of the heap list to traverse from highest to lowest
id's.  This allows allocations to pass a heap mask that falls
back on the system heap -- typically id 0, which is the common case.

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