gpu: ion: Stop trying to allocate from an order on first failure
authorRebecca Schultz Zavin <rebecca@android.com>
Fri, 13 Dec 2013 22:24:07 +0000 (14:24 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 14 Dec 2013 16:55:39 +0000 (08:55 -0800)
commitba96a2eed5d357c4107f04d8c9f32a58c9ed01da
tree897ab1c2b3ca1932d30edd7730413945c571b02e
parent13ba7805f9bf710016ffde5e24437fd6e5a798dc
gpu: ion: Stop trying to allocate from an order on first failure

With this patch the system heap will only try to allocate from each
order as long as allocations succeed.  If it failes to obtain a higher
order allocation, it doesn't retry that order.

Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
[jstultz: modified patch to apply to staging directory]
Signed-off-by: John Stultz <john.stultz@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/android/ion/ion_system_heap.c