summaryrefslogtreecommitdiff
path: root/include/linux/pm_domain.h
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert+renesas@glider.be>2017-02-08 19:37:55 +0100
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2017-02-09 14:29:27 +0100
commit16d0bf1882109da84b4b90d7ba4fc7ba18db0d67 (patch)
treec1a2fbe2d028f2705b45e677233d933acf4a08b3 /include/linux/pm_domain.h
parent0883ac038be12c4dba1a68a05030730f10442bc2 (diff)
downloadlinux-next-16d0bf1882109da84b4b90d7ba4fc7ba18db0d67.tar.gz
PM / Domains: Provide dummy governors if CONFIG_PM_GENERIC_DOMAINS=n
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> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'include/linux/pm_domain.h')
-rw-r--r--include/linux/pm_domain.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/pm_domain.h b/include/linux/pm_domain.h
index 81ece61075df..5339ed5bd6f9 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,