summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDongwoo Lee <dwoo08.lee@samsung.com>2024-03-07 18:03:57 +0900
committerDongwoo Lee <dwoo08.lee@samsung.com>2024-03-07 19:59:40 +0900
commit19b8c1810e0dee629f3f46528112d698ec6bc5b0 (patch)
tree589e99e38c20e1491a6ed5e76827befba200da4f /src
parent1123ea812b6d06d7bf0b81992e2a5817fbb19f8d (diff)
downloadpass-19b8c1810e0dee629f3f46528112d698ec6bc5b0.tar.gz
pass-19b8c1810e0dee629f3f46528112d698ec6bc5b0.tar.bz2
pass-19b8c1810e0dee629f3f46528112d698ec6bc5b0.zip
pass-rescon: Get scenario_level_list inside critical sectionaccepted/tizen/unified/x/20240311.100253accepted/tizen/unified/20240308.174124
Change-Id: Ia371058c6ad4419da4ef48c569bdef6bf43fbe2a Signed-off-by: Dongwoo Lee <dwoo08.lee@samsung.com>
Diffstat (limited to 'src')
-rw-r--r--src/pass/pass-rescon.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/pass/pass-rescon.c b/src/pass/pass-rescon.c
index a90999d..a42f421 100644
--- a/src/pass/pass-rescon.c
+++ b/src/pass/pass-rescon.c
@@ -185,7 +185,7 @@ static int rescon_update(struct pass_resource *res)
struct pass_level *levels = res->config_data.levels;
struct pass_level *scenario_levels = res->config_data.scenario_levels;
struct pass_level adjusted_level;
- GList *list = rescon->scenario_level_list;
+ GList *list;
int res_type = res->config_data.res_type;
int limit_max_freq = -1;
int limit_min_freq = -1;
@@ -222,6 +222,7 @@ static int rescon_update(struct pass_resource *res)
/* Adjust with scenario pass_level */
g_mutex_lock(&rescon->scenario_level_mutex);
+ list = rescon->scenario_level_list;
while (list != NULL) {
i = GPOINTER_TO_INT(list->data);
list = g_list_next(list);