From 94f161129a97fe321d31292a18f8db45dc7890ba Mon Sep 17 00:00:00 2001 From: Zhang Hua Date: Sun, 29 Jan 2023 16:01:27 +0800 Subject: [PATCH] Add TASK_FREEZABLE See https://github.com/torvalds/linux/commit/f5d39b020809146cc28e6e73369bf8065e0310aa#diff-dc675d837f5054b5e96c5fc9fcb77ad08b94607f88b692930132614aa83613b2 --- binder/binder.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/binder/binder.c b/binder/binder.c index 404c32e..8aae804 100644 --- a/binder/binder.c +++ b/binder/binder.c @@ -4114,7 +4114,7 @@ static int binder_wait_for_work(struct binder_thread *thread, #endif binder_inner_proc_lock(proc); for (;;) { - prepare_to_wait(&thread->wait, &wait, TASK_INTERRUPTIBLE); + prepare_to_wait(&thread->wait, &wait, TASK_INTERRUPTIBLE|TASK_FREEZABLE); if (binder_has_work_ilocked(thread, do_proc_work)) break; if (do_proc_work)