Add samsung specific changes

This commit is contained in:
2025-08-11 14:29:00 +02:00
parent c66122e619
commit 4d134a1294
2688 changed files with 1127995 additions and 11475 deletions

View File

@@ -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",