pass: pmqos: Remove unneeded header file of PMQoS 32/169032/2
authorChanwoo Choi <cw00.choi@samsung.com>
Fri, 2 Feb 2018 01:37:24 +0000 (10:37 +0900)
committerChanwoo Choi <cw00.choi@samsung.com>
Fri, 2 Feb 2018 04:12:46 +0000 (13:12 +0900)
PMQoS's init/exit functions are only called in the PASS core (pass.c).
It means that these functions are not library. Remove header file
of PMQoS module and then uses the 'extern' to call PMQoS's init/exit functions.

Change-Id: I37abc63dadf55402c3f30a316102c604b899d8b8
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
src/pass/pass-gov.c
src/pass/pass-pmqos.h [deleted file]
src/pass/pass.c

index 098e5ad3f8c0494636ec96932cddcf80479ac19d..d65a2fc5e81d1f78435c6d66b0f8ad8154aa05f5 100644 (file)
@@ -25,7 +25,6 @@
 #include <pass/config-parser.h>
 
 #include "pass.h"
-#include "pass-pmqos.h"
 #include "pass-hal.h"
 #include "pass-rescon.h"
 
diff --git a/src/pass/pass-pmqos.h b/src/pass/pass-pmqos.h
deleted file mode 100644 (file)
index 5960cbf..0000000
+++ /dev/null
@@ -1,26 +0,0 @@
-/*
- * PASS (Power Aware System Service) PMQoS
- *
- * Copyright (c) 2016 Samsung Electronics Co., Ltd.
- *
- * Licensed under the Apache License, Version 2.0 (the License);
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#ifndef __PASS_PMQOS__
-#define __PASS_PMQOS__
-
-/* Initialize and exit the Scenario-based PMQoS */
-int pass_pmqos_init(struct pass_resource *res);
-int pass_pmqos_exit(struct pass_resource *res);
-
-#endif /* __PASS_PMQOS__ */
index 39cf534f93c2a370be7a6ace6eb3f04a63418a2a..03c7ea6b44a8eb14376a3caf84ccbb17ee98a9f7 100644 (file)
@@ -29,7 +29,6 @@
 
 #include "pass.h"
 #include "pass-parser.h"
-#include "pass-pmqos.h"
 #include "pass-hal.h"
 #include "pass-rescon.h"
 
@@ -44,6 +43,8 @@ extern int pass_rescon_init(struct pass_resource *res);
 extern int pass_rescon_exit(struct pass_resource *res);
 extern int pass_governor_init(struct pass_resource *res);
 extern int pass_governor_exit(struct pass_resource *res);
+extern int pass_pmqos_init(struct pass_resource *res);
+extern int pass_pmqos_exit(struct pass_resource *res);
 
 static struct pass g_pass;
 static SystemPassCore *g_gdbus_instance = NULL;