mirror of
https://github.com/hardkernel/kernel_common_drivers.git
synced 2026-06-25 12:03:48 +09:00
keeper: Shrinking the critical section [1/1]
PD#SWPL-214617 Problem: Sleeping while keeper manager locked. Solution: Modify critical sections in codec_mm_keeper_mask_keep_mem. Verify: gxlx4 Change-Id: I58a7fbc0ca897b71760320e0fbe8ba94d77242af Signed-off-by: Hao Shi <hao.shi@amlogic.com>
This commit is contained in:
committed by
gerrit autosubmit
parent
5358215be0
commit
fddb5c16f3
@@ -115,6 +115,7 @@ int codec_mm_keeper_mask_keep_mem(void *mem_handle, int type)
|
||||
if (!have_samed)
|
||||
keep_id = -1;
|
||||
}
|
||||
spin_unlock_irqrestore(&mgr->lock, flags);
|
||||
if (codec_mm_get_keep_debug_mode() & 1) {
|
||||
/*kept info */
|
||||
pr_err("%s %p id=%d\n", __func__,
|
||||
@@ -128,7 +129,6 @@ int codec_mm_keeper_mask_keep_mem(void *mem_handle, int type)
|
||||
if (keep_id < 0)
|
||||
pr_err("keep mem failed because keep buffer fulled!!!\n");
|
||||
}
|
||||
spin_unlock_irqrestore(&mgr->lock, flags);
|
||||
|
||||
return keep_id;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user