PM / Domains: Provide dummy governors if CONFIG_PM_GENERIC_DOMAINS=n
authorGeert Uytterhoeven <[email protected]>
Wed, 8 Feb 2017 18:37:55 +0000 (19:37 +0100)
committerRafael J. Wysocki <[email protected]>
Thu, 9 Feb 2017 13:29:27 +0000 (14:29 +0100)
This allows to compile-test drivers that refer to governors (always by
reference) when CONFIG_PM_GENERIC_DOMAINS=n.

Signed-off-by: Geert Uytterhoeven <[email protected]>
Acked-by: Ulf Hansson <[email protected]>
Signed-off-by: Rafael J. Wysocki <[email protected]>
include/linux/pm_domain.h

index 81ece61075dff0e7a04e56f764bdae8a142f08e5..5339ed5bd6f9d04af80cd7da068a776517d9c4ff 100644 (file)
@@ -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,