parent
cd66055f6d
commit
42335c65bc
|
@ -4109,7 +4109,9 @@ static int binder_wait_for_work(struct binder_thread *thread,
|
||||||
struct binder_proc *proc = thread->proc;
|
struct binder_proc *proc = thread->proc;
|
||||||
int ret = 0;
|
int ret = 0;
|
||||||
|
|
||||||
|
#if LINUX_VERSION_CODE <= KERNEL_VERSION(6,0,0)
|
||||||
freezer_do_not_count();
|
freezer_do_not_count();
|
||||||
|
#endif
|
||||||
binder_inner_proc_lock(proc);
|
binder_inner_proc_lock(proc);
|
||||||
for (;;) {
|
for (;;) {
|
||||||
prepare_to_wait(&thread->wait, &wait, TASK_INTERRUPTIBLE);
|
prepare_to_wait(&thread->wait, &wait, TASK_INTERRUPTIBLE);
|
||||||
|
@ -4129,7 +4131,9 @@ static int binder_wait_for_work(struct binder_thread *thread,
|
||||||
}
|
}
|
||||||
finish_wait(&thread->wait, &wait);
|
finish_wait(&thread->wait, &wait);
|
||||||
binder_inner_proc_unlock(proc);
|
binder_inner_proc_unlock(proc);
|
||||||
|
#if LINUX_VERSION_CODE <= KERNEL_VERSION(6,0,0)
|
||||||
freezer_count();
|
freezer_count();
|
||||||
|
#endif
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue