msm: adsprpc: cleanup ADSP rh memory during hibernation
During hibernation suspend, we pass null fl, allow ADSP remoteheap memory cleanup in this case. Change-Id: I42b80ded3955f9d5200cb77114a476a69f5353d5 Signed-off-by: nishant chaubey <quic_chaubey@quicinc.com>
This commit is contained in:
@@ -4728,8 +4728,9 @@ static int fastrpc_mmap_remove_ssr(struct fastrpc_file *fl, int locked)
|
|||||||
match = NULL;
|
match = NULL;
|
||||||
spin_lock_irqsave(&me->hlock, irq_flags);
|
spin_lock_irqsave(&me->hlock, irq_flags);
|
||||||
hlist_for_each_entry_safe(map, n, &me->maps, hn) {
|
hlist_for_each_entry_safe(map, n, &me->maps, hn) {
|
||||||
if (map->servloc_name && fl &&
|
/* In hibernation suspend case fl is NULL, check !fl to cleanup */
|
||||||
fl->servloc_name && !strcmp(map->servloc_name, fl->servloc_name)) {
|
if (!fl || (fl && map->servloc_name && fl->servloc_name
|
||||||
|
&& !strcmp(map->servloc_name, fl->servloc_name))) {
|
||||||
match = map;
|
match = map;
|
||||||
if (map->is_persistent && map->in_use) {
|
if (map->is_persistent && map->in_use) {
|
||||||
int destVM[1] = {VMID_HLOS};
|
int destVM[1] = {VMID_HLOS};
|
||||||
|
Reference in New Issue
Block a user