PM / domains: Remove default_stop_ok() API
There are currently no need to export default_stop_ok() as an API, instead let's keep it local to the PM domain governor. Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org> Reviewed-by: Kevin Hilman <khilman@linaro.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
This commit is contained in:
parent
f1bf45c70f
commit
0f574d4c3a
|
@ -42,7 +42,7 @@ static int dev_update_qos_constraint(struct device *dev, void *data)
|
||||||
* default_stop_ok - Default PM domain governor routine for stopping devices.
|
* default_stop_ok - Default PM domain governor routine for stopping devices.
|
||||||
* @dev: Device to check.
|
* @dev: Device to check.
|
||||||
*/
|
*/
|
||||||
bool default_stop_ok(struct device *dev)
|
static bool default_stop_ok(struct device *dev)
|
||||||
{
|
{
|
||||||
struct gpd_timing_data *td = &dev_gpd_data(dev)->td;
|
struct gpd_timing_data *td = &dev_gpd_data(dev)->td;
|
||||||
unsigned long flags;
|
unsigned long flags;
|
||||||
|
@ -229,10 +229,7 @@ static bool always_on_power_down_ok(struct dev_pm_domain *domain)
|
||||||
|
|
||||||
#else /* !CONFIG_PM_RUNTIME */
|
#else /* !CONFIG_PM_RUNTIME */
|
||||||
|
|
||||||
bool default_stop_ok(struct device *dev)
|
static inline bool default_stop_ok(struct device *dev) { return false; }
|
||||||
{
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
#define default_power_down_ok NULL
|
#define default_power_down_ok NULL
|
||||||
#define always_on_power_down_ok NULL
|
#define always_on_power_down_ok NULL
|
||||||
|
|
|
@ -151,8 +151,6 @@ extern void pm_genpd_init(struct generic_pm_domain *genpd,
|
||||||
extern int pm_genpd_poweron(struct generic_pm_domain *genpd);
|
extern int pm_genpd_poweron(struct generic_pm_domain *genpd);
|
||||||
extern int pm_genpd_name_poweron(const char *domain_name);
|
extern int pm_genpd_name_poweron(const char *domain_name);
|
||||||
|
|
||||||
extern bool default_stop_ok(struct device *dev);
|
|
||||||
|
|
||||||
extern struct dev_power_governor pm_domain_always_on_gov;
|
extern struct dev_power_governor pm_domain_always_on_gov;
|
||||||
#else
|
#else
|
||||||
|
|
||||||
|
@ -231,10 +229,6 @@ static inline int pm_genpd_name_poweron(const char *domain_name)
|
||||||
{
|
{
|
||||||
return -ENOSYS;
|
return -ENOSYS;
|
||||||
}
|
}
|
||||||
static inline bool default_stop_ok(struct device *dev)
|
|
||||||
{
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
#define simple_qos_governor NULL
|
#define simple_qos_governor NULL
|
||||||
#define pm_domain_always_on_gov NULL
|
#define pm_domain_always_on_gov NULL
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue