This patch fixes the bug of the wrong locked time.
On previous pass-pmqos.c show the current time
instead of the locked time.
- Before
UnLock 'AppLaunch' scenario for 'cpu0' resource (1799653344ms)
- After
UnLock 'AppLaunch' scenario for 'cpu0' resource (3001ms)
Change-Id: Iab24f788436604091058cc2bd085a088042bf8e0
Fixes: 8ddcc2d18db8 ("pass: Fix the build warnings")
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
_I("Lock '%s' scenario for '%s' resource\n",
name, cdata->res_name);
} else {
- scenario->list[index].locked_time = 0;
-
_I("UnLock '%s' scenario for '%s' resource (%lldms)\n",
name, cdata->res_name,
(pass_get_time_ms() - scenario->list[index].locked_time));
+
+ scenario->list[index].locked_time = 0;
}
pass_governor_change_level_scope(policy, min_level, max_level);