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>
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;