cpu-boosting: Init cpu boosting module early 24/297124/5
authorUnsung Lee <unsung.lee@samsung.com>
Wed, 9 Aug 2023 04:42:10 +0000 (13:42 +0900)
committerUnsung Lee <unsung.lee@samsung.com>
Mon, 28 Aug 2023 01:49:13 +0000 (10:49 +0900)
Initialize cpu boosting module earlier than cpu boosting monitor module.
This is because, cpu boosting module must be ready to accept requests from
cpu boosting monitor.
Currently, cpu boosting module does not depend on any other resourced modules,
so initailize cpu boosting module with the highest priority (i.e., MODULE_PRIORITY_EARLY).

Change-Id: I9cff9d0c24205d7887b4d6d758b7410efe1fc165
Signed-off-by: Unsung Lee <unsung.lee@samsung.com>
src/resource-optimizer/cpu/cpu-boosting.c

index 2783ea0..169fe2f 100644 (file)
@@ -1200,7 +1200,7 @@ static int cpu_boosting_finalize(void *data)
 }
 
 static struct module_ops cpu_boosting_modules_ops = {
-       .priority = MODULE_PRIORITY_HIGH,
+       .priority = MODULE_PRIORITY_EARLY,
        .name = "cpu-boosting",
        .init = cpu_boosting_init,
        .exit = cpu_boosting_finalize,