power/governor: Remove the duplicated function prototype
since they are declared include/nuttx/power/pm.h by:
commit 5ce181e6b7
Author: zhuyanlin <zhuyanlin1@xiaomi.com>
Date: Mon Feb 14 15:32:40 2022 +0800
power:govorner: add govorner to per domain.
For mult domains scene,,
activity and greety can be used at same time.
Let user to select domain governor.
Signed-off-by: zhuyanlin <zhuyanlin1@xiaomi.com>
and add static const to g_pmgovernor
Signed-off-by: zhuyanlin <zhuyanlin1@xiaomi.com>
This commit is contained in:
parent
f5cf35784e
commit
5cc4f22b43
@ -188,7 +188,7 @@ struct pm_activity_governor_s g_pm_activity_governor =
|
||||
#endif
|
||||
};
|
||||
|
||||
static struct pm_governor_s g_pmgovernor =
|
||||
static const struct pm_governor_s g_pmgovernor =
|
||||
{
|
||||
governor_initialize, /* initialize */
|
||||
NULL, /* deinitialize */
|
||||
@ -594,7 +594,7 @@ static void governor_timer(int domain)
|
||||
* Public Functions
|
||||
****************************************************************************/
|
||||
|
||||
FAR struct pm_governor_s *pm_activity_governor_initialize(void)
|
||||
FAR const struct pm_governor_s *pm_activity_governor_initialize(void)
|
||||
{
|
||||
return &g_pmgovernor;
|
||||
}
|
||||
|
@ -176,12 +176,6 @@ extern "C"
|
||||
#define EXTERN extern
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
* Public Function Prototypes
|
||||
****************************************************************************/
|
||||
|
||||
FAR struct pm_governor_s *pm_activity_governor_initialize(void);
|
||||
|
||||
#undef EXTERN
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
@ -62,7 +62,7 @@ static enum pm_state_e greedy_governor_checkstate(int domain);
|
||||
* Private Data
|
||||
****************************************************************************/
|
||||
|
||||
static struct pm_governor_s g_greedy_governor_ops =
|
||||
static const struct pm_governor_s g_greedy_governor_ops =
|
||||
{
|
||||
greedy_governor_initialize, /* initialize */
|
||||
NULL, /* deinitialize */
|
||||
|
@ -41,23 +41,6 @@ extern "C"
|
||||
#define EXTERN extern
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
* Public Function Prototypes
|
||||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* Name: pm_greedy_governor_register
|
||||
*
|
||||
* Description:
|
||||
* Return the greedy governor instance.
|
||||
*
|
||||
* Returned Value:
|
||||
* A pointer to the governor struct. Otherwise NULL is returned on error.
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
FAR const struct pm_governor_s *pm_greedy_governor_initialize(void);
|
||||
|
||||
#undef EXTERN
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
@ -28,12 +28,6 @@
|
||||
|
||||
#include "pm.h"
|
||||
|
||||
#if defined(CONFIG_PM_GOVERNOR_ACTIVITY)
|
||||
# include "activity_governor.h"
|
||||
#elif defined(CONFIG_PM_GOVERNOR_GREEDY)
|
||||
# include "greedy_governor.h"
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_PM
|
||||
|
||||
/****************************************************************************
|
||||
|
Loading…
Reference in New Issue
Block a user