From 175697d232e90cdd62b039847d0c36e9e9df173f Mon Sep 17 00:00:00 2001 From: Unsung Lee Date: Wed, 9 Aug 2023 13:42:10 +0900 Subject: [PATCH] cpu-boosting: Init cpu boosting module early 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 --- src/resource-optimizer/cpu/cpu-boosting.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/resource-optimizer/cpu/cpu-boosting.c b/src/resource-optimizer/cpu/cpu-boosting.c index 2783ea0..169fe2f 100644 --- a/src/resource-optimizer/cpu/cpu-boosting.c +++ b/src/resource-optimizer/cpu/cpu-boosting.c @@ -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, -- 2.7.4