Add samsung specific changes
This commit is contained in:
@@ -27,10 +27,6 @@
|
||||
#include "binder_trace.h"
|
||||
#include <trace/hooks/binder.h>
|
||||
|
||||
#ifdef CONFIG_SAMSUNG_FREECESS
|
||||
#include <linux/freecess.h>
|
||||
#endif
|
||||
|
||||
struct list_lru binder_freelist;
|
||||
|
||||
static DEFINE_MUTEX(binder_alloc_mmap_lock);
|
||||
@@ -462,19 +458,6 @@ static struct binder_buffer *binder_alloc_new_buf_locked(
|
||||
goto out;
|
||||
}
|
||||
|
||||
#ifdef CONFIG_SAMSUNG_FREECESS
|
||||
if (is_async && (alloc->free_async_space < 3 * size
|
||||
|| alloc->free_async_space < alloc->buffer_size/4)) {
|
||||
struct task_struct *p;
|
||||
|
||||
rcu_read_lock();
|
||||
p = find_task_by_vpid(alloc->pid);
|
||||
rcu_read_unlock();
|
||||
if (p && (thread_group_is_frozen(p) || (p->jobctl & JOBCTL_TRAP_FREEZE)))
|
||||
binder_report(p, -1, "free_buffer_full", is_async);
|
||||
}
|
||||
#endif
|
||||
|
||||
if (is_async && alloc->free_async_space < size) {
|
||||
binder_alloc_debug(BINDER_DEBUG_BUFFER_ALLOC,
|
||||
"%d: binder_alloc_buf size %zd failed, no async space left\n",
|
||||
|
Reference in New Issue
Block a user