diff mbox

PM / Domains: Provide dummy governors if CONFIG_PM_GENERIC_DOMAINS=n

Message ID 1486579075-21498-1-git-send-email-geert+renesas@glider.be (mailing list archive)
State Mainlined
Delegated to: Rafael Wysocki
Headers show

Commit Message

Geert Uytterhoeven Feb. 8, 2017, 6:37 p.m. UTC
This allows to compile-test drivers that refer to governors (always by
reference) when CONFIG_PM_GENERIC_DOMAINS=n.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
 include/linux/pm_domain.h | 3 +++
 1 file changed, 3 insertions(+)

Comments

Ulf Hansson Feb. 9, 2017, 10:40 a.m. UTC | #1
On 8 February 2017 at 19:37, Geert Uytterhoeven <geert+renesas@glider.be> wrote:
> This allows to compile-test drivers that refer to governors (always by
> reference) when CONFIG_PM_GENERIC_DOMAINS=n.
>
> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>

Acked-by: Ulf Hansson <ulf.hansson@linaro.org>

Kind regards
Uffe

> ---
>  include/linux/pm_domain.h | 3 +++
>  1 file changed, 3 insertions(+)
>
> diff --git a/include/linux/pm_domain.h b/include/linux/pm_domain.h
> index 81ece61075dff0e7..5339ed5bd6f9d04a 100644
> --- a/include/linux/pm_domain.h
> +++ b/include/linux/pm_domain.h
> @@ -182,6 +182,9 @@ static inline int pm_genpd_remove(struct generic_pm_domain *genpd)
>  {
>         return -ENOTSUPP;
>  }
> +
> +#define simple_qos_governor            (*(struct dev_power_governor *)(NULL))
> +#define pm_domain_always_on_gov                (*(struct dev_power_governor *)(NULL))
>  #endif
>
>  static inline int pm_genpd_add_device(struct generic_pm_domain *genpd,
> --
> 1.9.1
>
--
To unsubscribe from this list: send the line "unsubscribe linux-pm" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/include/linux/pm_domain.h b/include/linux/pm_domain.h
index 81ece61075dff0e7..5339ed5bd6f9d04a 100644
--- a/include/linux/pm_domain.h
+++ b/include/linux/pm_domain.h
@@ -182,6 +182,9 @@  static inline int pm_genpd_remove(struct generic_pm_domain *genpd)
 {
 	return -ENOTSUPP;
 }
+
+#define simple_qos_governor		(*(struct dev_power_governor *)(NULL))
+#define pm_domain_always_on_gov		(*(struct dev_power_governor *)(NULL))
 #endif
 
 static inline int pm_genpd_add_device(struct generic_pm_domain *genpd,