diff options
author | Mitchel Humpherys <mitchelh@codeaurora.org> | 2015-01-06 17:56:50 -0800 |
---|---|---|
committer | David Keitel <dkeitel@codeaurora.org> | 2016-03-22 11:04:22 -0700 |
commit | b84b3c4f983d40b50c1a2474277f1dc55e37cd3d (patch) | |
tree | a48e53d9ada763f63489364669ef6835efdcc325 | |
parent | 32241e53e1b00385b33a6ba427c0ce8795fe895f (diff) |
ion: system_secure_heap: add DEFER_FREE heap flag
Ion's deferred freeing feature has been shown to greatly improve user
experience for some use cases. Enable the feature in the system secure
heap by adding the appropriate heap flag.
Change-Id: I9be7f2b3365b2d1a086acc3d182d46bfee2e6cfe
Signed-off-by: Mitchel Humpherys <mitchelh@codeaurora.org>
-rw-r--r-- | drivers/staging/android/ion/ion_system_secure_heap.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/staging/android/ion/ion_system_secure_heap.c b/drivers/staging/android/ion/ion_system_secure_heap.c index bfda753ca3c6..b7f765715980 100644 --- a/drivers/staging/android/ion/ion_system_secure_heap.c +++ b/drivers/staging/android/ion/ion_system_secure_heap.c @@ -1,6 +1,6 @@ /* * - * Copyright (c) 2014, The Linux Foundation. All rights reserved. + * Copyright (c) 2014-2015, The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and @@ -200,6 +200,7 @@ struct ion_heap *ion_system_secure_heap_create(struct ion_platform_heap *unused) return ERR_PTR(-ENOMEM); heap->heap.ops = &system_secure_heap_ops; heap->heap.type = ION_HEAP_TYPE_SYSTEM_SECURE; + heap->heap.flags = ION_HEAP_FLAG_DEFER_FREE; heap->sys_heap = get_ion_heap(ION_SYSTEM_HEAP_ID); return &heap->heap; } |