timer: After turning on the vad, the standby will hang [1/1] lineage-20 lineage-21 lineage-22.0
authorrui guo <rui.guo@amlogic.com>
Wed, 17 Aug 2022 02:06:50 +0000 (10:06 +0800)
committerBruno Martins <bgcngm@gmail.com>
Sat, 20 Jul 2024 21:22:12 +0000 (22:22 +0100)
PD#SWPL-92294

Problem:
The clock will be turned off when in standby,
but the timer interrupt waiting queue is still
executing

Solution:
When standby, the timer interrupt waiting queue
will freeze

Verify:
Android R + AH212

Change-Id: I22b6e726512cd378c910745621b598bdb9ae3617
Signed-off-by: rui guo <rui.guo@amlogic.com>
optee/rpc.c

index 038d9e10cec2dee94b416eea9682e924de3c923a..2a8e531858ac74809a59c84a8676cd7d32589120 100644 (file)
@@ -385,7 +385,7 @@ void optee_timer_init(struct optee_timer *timer)
        mutex_init(&timer->mutex);
        INIT_LIST_HEAD(&timer->timer_list);
 
-       wq = create_workqueue("tee_timer");
+       wq = create_freezable_workqueue("tee_timer");
        if (!wq)
                return;
        timer->wq = wq;