}
}
+static gboolean cpu_boosting_governor_govern_request (gpointer user_data)
+{
+ return FALSE;
+}
+
+void cpu_boosting_wakeup_cpu_boosting_thread(void)
+{
+ /**
+ * This function is called by a monitor thread,
+ * so, the monitor should wakeup the cpu boosting main thread
+ * to call governor.
+ */
+ g_main_context_invoke(cpu_boosting_context,
+ cpu_boosting_governor_govern_request, NULL);
+}
+
static cpu_boosting_level_e cpu_boosting_level_search(struct sched_attr attr)
{
attr.sched_policy = attr.sched_policy & ~SCHED_RESET_ON_FORK;
--- /dev/null
+/*
+ * resourced
+ *
+ * Copyright (c) 2023 Samsung Electronics Co., Ltd. All rights reserved.
+ *
+ * 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.
+ *
+ */
+
+/**
+ * @file cpu-boosting.h
+ * @desc cpu boosting handler.
+ **/
+
+#ifndef __CPU_BOOSTING_H__
+#define __CPU_BOOSTING_H__
+
+#ifdef __cplusplus
+extern "C" {
+#endif /* __cplusplus */
+
+void cpu_boosting_wakeup_cpu_boosting_thread(void);
+
+#ifdef __cplusplus
+}
+#endif /* __cplusplus */
+
+#endif /*__CPU_BOOSTING_H__*/
+