From: Unsung Lee Date: Wed, 9 Aug 2023 04:42:10 +0000 (+0900) Subject: cpu-boosting: Init cpu boosting module early X-Git-Tag: accepted/tizen/unified/20230906.014625~8 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=175697d232e90cdd62b039847d0c36e9e9df173f;p=platform%2Fcore%2Fsystem%2Fresourced.git 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 --- diff --git a/src/resource-optimizer/cpu/cpu-boosting.c b/src/resource-optimizer/cpu/cpu-boosting.c index 2783ea05..169fe2fd 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,