android_kernel_samsung_sm86.../hif
Karthik Kantamneni 332fc3b9eb qcacmn: Fix out of sync OOM work counter
Currently OOM work counter is incremented when schedule_work
is called and counter is decremented when work is scheduled.
But there is possibility of OOM schedule_work is getting called
from tasklet context and worker thread context and resulting
only one time work execution but active work counter being
incremented twice. This scenario may result in OOM work going
out of sync and preventing suspend usecase.

Avoid this by incrementing the OOM active work count only when
work is getting added to global work queue and corresponding count
will be decremented when work handler gets executed.

Change-Id: Ie02d5b9c821327337a1b822c81c51878af522832
CRs-Fixed: 3787873
2024-04-30 22:17:27 -07:00
..
inc qcacmn: Add support to request rtpm resume in suspending state 2024-03-05 13:33:10 -08:00
src qcacmn: Fix out of sync OOM work counter 2024-04-30 22:17:27 -07:00