blob: a6e251fe9deb70356683d13715e65dadfc04c9fe [file] [log] [blame]
Rafael J. Wysockif7218892011-07-01 22:12:45 +02001/*
2 * pm_domain.h - Definitions and headers related to device power domains.
3 *
4 * Copyright (C) 2011 Rafael J. Wysocki <rjw@sisk.pl>, Renesas Electronics Corp.
5 *
6 * This file is released under the GPLv2.
7 */
8
9#ifndef _LINUX_PM_DOMAIN_H
10#define _LINUX_PM_DOMAIN_H
11
12#include <linux/device.h>
Paul Gortmaker313162d2012-01-30 11:46:54 -050013#include <linux/mutex.h>
14#include <linux/pm.h>
Guennadi Liakhovetski4f042cd2011-12-01 00:05:31 +010015#include <linux/err.h>
Thomas Abrahamc8aa1302012-01-27 15:22:07 +090016#include <linux/of.h>
Rafael J. Wysocki6ff7bb0d02012-05-01 21:34:07 +020017#include <linux/notifier.h>
Lina Iyerd716f472016-10-14 10:47:55 -070018#include <linux/spinlock.h>
Ulf Hanssoneb594b72019-03-27 15:35:46 +010019#include <linux/cpumask.h>
Rafael J. Wysockif7218892011-07-01 22:12:45 +020020
Ulf Hanssone5089c22018-10-03 16:38:16 +020021/*
22 * Flags to control the behaviour of a genpd.
23 *
24 * These flags may be set in the struct generic_pm_domain's flags field by a
25 * genpd backend driver. The flags must be set before it calls pm_genpd_init(),
26 * which initializes a genpd.
27 *
28 * GENPD_FLAG_PM_CLK: Instructs genpd to use the PM clk framework,
29 * while powering on/off attached devices.
30 *
31 * GENPD_FLAG_IRQ_SAFE: This informs genpd that its backend callbacks,
32 * ->power_on|off(), doesn't sleep. Hence, these
33 * can be invoked from within atomic context, which
34 * enables genpd to power on/off the PM domain,
35 * even when pm_runtime_is_irq_safe() returns true,
36 * for any of its attached devices. Note that, a
37 * genpd having this flag set, requires its
38 * masterdomains to also have it set.
39 *
40 * GENPD_FLAG_ALWAYS_ON: Instructs genpd to always keep the PM domain
41 * powered on.
42 *
43 * GENPD_FLAG_ACTIVE_WAKEUP: Instructs genpd to keep the PM domain powered
44 * on, in case any of its attached devices is used
45 * in the wakeup path to serve system wakeups.
Ulf Hanssoneb594b72019-03-27 15:35:46 +010046 *
47 * GENPD_FLAG_CPU_DOMAIN: Instructs genpd that it should expect to get
48 * devices attached, which may belong to CPUs or
49 * possibly have subdomains with CPUs attached.
50 * This flag enables the genpd backend driver to
51 * deploy idle power management support for CPUs
52 * and groups of CPUs. Note that, the backend
53 * driver must then comply with the so called,
54 * last-man-standing algorithm, for the CPUs in the
55 * PM domain.
Ulf Hanssone5089c22018-10-03 16:38:16 +020056 */
57#define GENPD_FLAG_PM_CLK (1U << 0)
58#define GENPD_FLAG_IRQ_SAFE (1U << 1)
59#define GENPD_FLAG_ALWAYS_ON (1U << 2)
60#define GENPD_FLAG_ACTIVE_WAKEUP (1U << 3)
Ulf Hanssoneb594b72019-03-27 15:35:46 +010061#define GENPD_FLAG_CPU_DOMAIN (1U << 4)
Ulf Hanssonc11f6f52014-12-01 12:50:21 +010062
Rafael J. Wysocki17b75ec2011-07-12 00:39:29 +020063enum gpd_status {
64 GPD_STATE_ACTIVE = 0, /* PM domain is active */
Rafael J. Wysocki17b75ec2011-07-12 00:39:29 +020065 GPD_STATE_POWER_OFF, /* PM domain is off */
66};
Rafael J. Wysocki596ba342011-07-01 22:13:19 +020067
Rafael J. Wysockif7218892011-07-01 22:12:45 +020068struct dev_power_governor {
69 bool (*power_down_ok)(struct dev_pm_domain *domain);
Ulf Hansson9df39212016-03-31 11:21:25 +020070 bool (*suspend_ok)(struct device *dev);
Rafael J. Wysockif7218892011-07-01 22:12:45 +020071};
72
Rafael J. Wysockid5e4cbf2011-11-27 13:11:36 +010073struct gpd_dev_ops {
74 int (*start)(struct device *dev);
75 int (*stop)(struct device *dev);
Rafael J. Wysockid5e4cbf2011-11-27 13:11:36 +010076};
77
Axel Haslamfc5cbf02016-02-15 11:10:51 +010078struct genpd_power_state {
79 s64 power_off_latency_ns;
80 s64 power_on_latency_ns;
Lina Iyer405f7222016-10-14 10:47:50 -070081 s64 residency_ns;
Lina Iyer0c9b6942016-10-14 10:47:52 -070082 struct fwnode_handle *fwnode;
Thara Gopinathafece3a2017-07-14 13:10:15 -040083 ktime_t idle_time;
Ulf Hansson49a27e22019-03-27 15:35:45 +010084 void *data;
Axel Haslamfc5cbf02016-02-15 11:10:51 +010085};
86
Lina Iyer35241d12016-10-14 10:47:54 -070087struct genpd_lock_ops;
Viresh Kumar6e417662017-11-29 15:21:51 +053088struct dev_pm_opp;
Viresh Kumar1067ae32018-11-02 11:18:08 +053089struct opp_table;
Lina Iyer35241d12016-10-14 10:47:54 -070090
Rafael J. Wysockif7218892011-07-01 22:12:45 +020091struct generic_pm_domain {
Viresh Kumar401ea152017-03-17 11:26:19 +053092 struct device dev;
Rafael J. Wysockif7218892011-07-01 22:12:45 +020093 struct dev_pm_domain domain; /* PM domain operations */
Rafael J. Wysocki5125bbf382011-07-13 12:31:52 +020094 struct list_head gpd_list_node; /* Node in the global PM domains list */
Rafael J. Wysocki5063ce12011-08-08 23:43:40 +020095 struct list_head master_links; /* Links with PM domain as a master */
96 struct list_head slave_links; /* Links with PM domain as a slave */
Rafael J. Wysockif7218892011-07-01 22:12:45 +020097 struct list_head dev_list; /* List of devices */
Rafael J. Wysockif7218892011-07-01 22:12:45 +020098 struct dev_power_governor *gov;
99 struct work_struct power_off_work;
Jon Hunterde0aa06d2016-09-12 12:01:12 +0100100 struct fwnode_handle *provider; /* Identity of the domain provider */
101 bool has_provider;
Geert Uytterhoevend07e9c12014-08-29 15:13:21 +0200102 const char *name;
Rafael J. Wysockic4bb3162011-08-08 23:43:04 +0200103 atomic_t sd_count; /* Number of subdomains with power "on" */
Rafael J. Wysocki17b75ec2011-07-12 00:39:29 +0200104 enum gpd_status status; /* Current state of the domain */
Rafael J. Wysocki596ba342011-07-01 22:13:19 +0200105 unsigned int device_count; /* Number of devices */
106 unsigned int suspended_count; /* System suspend device counter */
107 unsigned int prepared_count; /* Suspend counter of prepared devices */
Viresh Kumar42f62842017-10-12 15:07:23 +0530108 unsigned int performance_state; /* Aggregated max performance state */
Ulf Hanssoneb594b72019-03-27 15:35:46 +0100109 cpumask_var_t cpus; /* A cpumask of the attached CPUs */
Rafael J. Wysockif7218892011-07-01 22:12:45 +0200110 int (*power_off)(struct generic_pm_domain *domain);
111 int (*power_on)(struct generic_pm_domain *domain);
Viresh Kumar1067ae32018-11-02 11:18:08 +0530112 struct opp_table *opp_table; /* OPP table of the genpd */
Viresh Kumar6e417662017-11-29 15:21:51 +0530113 unsigned int (*opp_to_performance_state)(struct generic_pm_domain *genpd,
114 struct dev_pm_opp *opp);
Viresh Kumar42f62842017-10-12 15:07:23 +0530115 int (*set_performance_state)(struct generic_pm_domain *genpd,
116 unsigned int state);
Rafael J. Wysockid5e4cbf2011-11-27 13:11:36 +0100117 struct gpd_dev_ops dev_ops;
Rafael J. Wysocki221e9b52011-12-01 00:02:10 +0100118 s64 max_off_time_ns; /* Maximum allowed "suspended" time. */
Rafael J. Wysocki6ff7bb0d02012-05-01 21:34:07 +0200119 bool max_off_time_changed;
120 bool cached_power_down_ok;
Ulf Hanssonc16561e2014-11-06 00:37:08 +0100121 int (*attach_dev)(struct generic_pm_domain *domain,
122 struct device *dev);
123 void (*detach_dev)(struct generic_pm_domain *domain,
124 struct device *dev);
Ulf Hanssonc11f6f52014-12-01 12:50:21 +0100125 unsigned int flags; /* Bit field of configs for genpd */
Lina Iyer59d65b72016-10-14 10:47:49 -0700126 struct genpd_power_state *states;
Ulf Hansson49a27e22019-03-27 15:35:45 +0100127 void (*free_states)(struct genpd_power_state *states,
128 unsigned int state_count);
Axel Haslamfc5cbf02016-02-15 11:10:51 +0100129 unsigned int state_count; /* number of states */
130 unsigned int state_idx; /* state that genpd will go to when off */
Thara Gopinathafece3a2017-07-14 13:10:15 -0400131 ktime_t on_time;
132 ktime_t accounting_time;
Lina Iyer35241d12016-10-14 10:47:54 -0700133 const struct genpd_lock_ops *lock_ops;
Lina Iyerd716f472016-10-14 10:47:55 -0700134 union {
135 struct mutex mlock;
136 struct {
137 spinlock_t slock;
138 unsigned long lock_flags;
139 };
140 };
Axel Haslamfc5cbf02016-02-15 11:10:51 +0100141
Rafael J. Wysockif7218892011-07-01 22:12:45 +0200142};
143
Rafael J. Wysocki596ba342011-07-01 22:13:19 +0200144static inline struct generic_pm_domain *pd_to_genpd(struct dev_pm_domain *pd)
145{
146 return container_of(pd, struct generic_pm_domain, domain);
147}
148
Rafael J. Wysocki5063ce12011-08-08 23:43:40 +0200149struct gpd_link {
150 struct generic_pm_domain *master;
151 struct list_head master_node;
152 struct generic_pm_domain *slave;
153 struct list_head slave_node;
Viresh Kumar18edf492018-11-02 14:40:19 +0530154
155 /* Sub-domain's per-master domain performance state */
156 unsigned int performance_state;
157 unsigned int prev_performance_state;
Rafael J. Wysocki5063ce12011-08-08 23:43:40 +0200158};
159
Rafael J. Wysockib02c9992011-12-01 00:02:05 +0100160struct gpd_timing_data {
Ulf Hansson2b1d88c2015-10-15 17:02:19 +0200161 s64 suspend_latency_ns;
162 s64 resume_latency_ns;
Rafael J. Wysockia5bef8102012-04-29 22:54:17 +0200163 s64 effective_constraint_ns;
Rafael J. Wysocki6ff7bb0d02012-05-01 21:34:07 +0200164 bool constraint_changed;
Ulf Hansson9df39212016-03-31 11:21:25 +0200165 bool cached_suspend_ok;
Rafael J. Wysockib02c9992011-12-01 00:02:05 +0100166};
167
Ulf Hansson00e7c292014-11-14 08:41:32 +0100168struct pm_domain_data {
169 struct list_head list_node;
170 struct device *dev;
171};
172
Rafael J. Wysockicd0ea672011-09-26 20:22:02 +0200173struct generic_pm_domain_data {
174 struct pm_domain_data base;
Rafael J. Wysockib02c9992011-12-01 00:02:05 +0100175 struct gpd_timing_data td;
Rafael J. Wysocki6ff7bb0d02012-05-01 21:34:07 +0200176 struct notifier_block nb;
Viresh Kumar42f62842017-10-12 15:07:23 +0530177 unsigned int performance_state;
Dave Gerlacha5ea7a02017-04-04 08:51:29 -0700178 void *data;
Rafael J. Wysockicd0ea672011-09-26 20:22:02 +0200179};
180
Guennadi Liakhovetski9b4f617b2012-02-04 22:26:49 +0100181#ifdef CONFIG_PM_GENERIC_DOMAINS
Rafael J. Wysockicd0ea672011-09-26 20:22:02 +0200182static inline struct generic_pm_domain_data *to_gpd_data(struct pm_domain_data *pdd)
183{
184 return container_of(pdd, struct generic_pm_domain_data, base);
185}
186
Rafael J. Wysockid5e4cbf2011-11-27 13:11:36 +0100187static inline struct generic_pm_domain_data *dev_gpd_data(struct device *dev)
188{
189 return to_gpd_data(dev->power.subsys_data->domain_data);
190}
191
Ulf Hansson1a7a6702018-05-29 12:04:14 +0200192int pm_genpd_add_device(struct generic_pm_domain *genpd, struct device *dev);
Ulf Hansson924f4482018-05-29 12:04:15 +0200193int pm_genpd_remove_device(struct device *dev);
Ulf Hansson781b9d62018-05-29 12:04:13 +0200194int pm_genpd_add_subdomain(struct generic_pm_domain *genpd,
195 struct generic_pm_domain *new_subdomain);
196int pm_genpd_remove_subdomain(struct generic_pm_domain *genpd,
197 struct generic_pm_domain *target);
198int pm_genpd_init(struct generic_pm_domain *genpd,
199 struct dev_power_governor *gov, bool is_off);
200int pm_genpd_remove(struct generic_pm_domain *genpd);
201int dev_pm_genpd_set_performance_state(struct device *dev, unsigned int state);
Rafael J. Wysockib02c9992011-12-01 00:02:05 +0100202
Ulf Hanssonae3c5112014-09-03 12:52:31 +0200203extern struct dev_power_governor simple_qos_governor;
Mark Brown925b44a2011-12-08 23:27:28 +0100204extern struct dev_power_governor pm_domain_always_on_gov;
Rafael J. Wysockif7218892011-07-01 22:12:45 +0200205#else
Rafael J. Wysockib02c9992011-12-01 00:02:05 +0100206
Magnus Dammb6426312012-02-25 22:14:18 +0100207static inline struct generic_pm_domain_data *dev_gpd_data(struct device *dev)
208{
209 return ERR_PTR(-ENOSYS);
210}
Ulf Hansson1a7a6702018-05-29 12:04:14 +0200211static inline int pm_genpd_add_device(struct generic_pm_domain *genpd,
212 struct device *dev)
Rafael J. Wysockib02c9992011-12-01 00:02:05 +0100213{
214 return -ENOSYS;
215}
Ulf Hansson924f4482018-05-29 12:04:15 +0200216static inline int pm_genpd_remove_device(struct device *dev)
Rafael J. Wysockif7218892011-07-01 22:12:45 +0200217{
218 return -ENOSYS;
219}
220static inline int pm_genpd_add_subdomain(struct generic_pm_domain *genpd,
221 struct generic_pm_domain *new_sd)
222{
223 return -ENOSYS;
224}
225static inline int pm_genpd_remove_subdomain(struct generic_pm_domain *genpd,
226 struct generic_pm_domain *target)
227{
228 return -ENOSYS;
229}
Ulf Hansson7eb231c2016-06-17 12:27:52 +0200230static inline int pm_genpd_init(struct generic_pm_domain *genpd,
231 struct dev_power_governor *gov, bool is_off)
Rafael J. Wysockib02c9992011-12-01 00:02:05 +0100232{
Ulf Hansson7eb231c2016-06-17 12:27:52 +0200233 return -ENOSYS;
Rafael J. Wysockib02c9992011-12-01 00:02:05 +0100234}
Jon Hunter3fe57712016-09-12 12:01:13 +0100235static inline int pm_genpd_remove(struct generic_pm_domain *genpd)
236{
237 return -ENOTSUPP;
238}
Geert Uytterhoeven16d0bf12017-02-08 19:37:55 +0100239
Viresh Kumar42f62842017-10-12 15:07:23 +0530240static inline int dev_pm_genpd_set_performance_state(struct device *dev,
241 unsigned int state)
242{
243 return -ENOTSUPP;
244}
245
Geert Uytterhoeven16d0bf12017-02-08 19:37:55 +0100246#define simple_qos_governor (*(struct dev_power_governor *)(NULL))
247#define pm_domain_always_on_gov (*(struct dev_power_governor *)(NULL))
Rafael J. Wysocki17f2ae72011-08-14 13:34:31 +0200248#endif
249
Rafael J. Wysocki77f827d2012-08-06 01:39:57 +0200250#ifdef CONFIG_PM_GENERIC_DOMAINS_SLEEP
Ulf Hansson781b9d62018-05-29 12:04:13 +0200251void pm_genpd_syscore_poweroff(struct device *dev);
252void pm_genpd_syscore_poweron(struct device *dev);
Rafael J. Wysocki77f827d2012-08-06 01:39:57 +0200253#else
Ulf Hanssond47e6462014-09-03 12:52:24 +0200254static inline void pm_genpd_syscore_poweroff(struct device *dev) {}
255static inline void pm_genpd_syscore_poweron(struct device *dev) {}
Rafael J. Wysocki77f827d2012-08-06 01:39:57 +0200256#endif
257
Tomasz Figaaa422402014-09-19 20:27:36 +0200258/* OF PM domain providers */
259struct of_device_id;
260
Thierry Reding40845522017-03-29 18:34:50 +0200261typedef struct generic_pm_domain *(*genpd_xlate_t)(struct of_phandle_args *args,
262 void *data);
263
Tomasz Figaaa422402014-09-19 20:27:36 +0200264struct genpd_onecell_data {
265 struct generic_pm_domain **domains;
266 unsigned int num_domains;
Thierry Reding40845522017-03-29 18:34:50 +0200267 genpd_xlate_t xlate;
Tomasz Figaaa422402014-09-19 20:27:36 +0200268};
269
Tomasz Figaaa422402014-09-19 20:27:36 +0200270#ifdef CONFIG_PM_GENERIC_DOMAINS_OF
Jon Hunter892ebdcc2016-09-12 12:01:09 +0100271int of_genpd_add_provider_simple(struct device_node *np,
272 struct generic_pm_domain *genpd);
273int of_genpd_add_provider_onecell(struct device_node *np,
274 struct genpd_onecell_data *data);
Tomasz Figaaa422402014-09-19 20:27:36 +0200275void of_genpd_del_provider(struct device_node *np);
Ulf Hansson781b9d62018-05-29 12:04:13 +0200276int of_genpd_add_device(struct of_phandle_args *args, struct device *dev);
277int of_genpd_add_subdomain(struct of_phandle_args *parent,
278 struct of_phandle_args *new_subdomain);
279struct generic_pm_domain *of_genpd_remove_last(struct device_node *np);
280int of_genpd_parse_idle_states(struct device_node *dn,
281 struct genpd_power_state **states, int *n);
Viresh Kumare38f89d2018-06-13 20:22:04 +0530282unsigned int pm_genpd_opp_to_performance_state(struct device *genpd_dev,
283 struct dev_pm_opp *opp);
Tomasz Figaaa422402014-09-19 20:27:36 +0200284
285int genpd_dev_pm_attach(struct device *dev);
Ulf Hansson3c095f32018-05-31 12:59:58 +0200286struct device *genpd_dev_pm_attach_by_id(struct device *dev,
287 unsigned int index);
Ulf Hansson5d6be702018-06-29 13:04:31 +0200288struct device *genpd_dev_pm_attach_by_name(struct device *dev,
Douglas Anderson7416f1f2019-02-14 10:12:48 -0800289 const char *name);
Tomasz Figaaa422402014-09-19 20:27:36 +0200290#else /* !CONFIG_PM_GENERIC_DOMAINS_OF */
Jon Hunter892ebdcc2016-09-12 12:01:09 +0100291static inline int of_genpd_add_provider_simple(struct device_node *np,
292 struct generic_pm_domain *genpd)
Tomasz Figaaa422402014-09-19 20:27:36 +0200293{
Jon Hunter892ebdcc2016-09-12 12:01:09 +0100294 return -ENOTSUPP;
Tomasz Figaaa422402014-09-19 20:27:36 +0200295}
Tomasz Figaaa422402014-09-19 20:27:36 +0200296
Jon Hunter892ebdcc2016-09-12 12:01:09 +0100297static inline int of_genpd_add_provider_onecell(struct device_node *np,
298 struct genpd_onecell_data *data)
299{
300 return -ENOTSUPP;
301}
302
303static inline void of_genpd_del_provider(struct device_node *np) {}
Tomasz Figaaa422402014-09-19 20:27:36 +0200304
Jon Hunterec695722016-09-12 12:01:05 +0100305static inline int of_genpd_add_device(struct of_phandle_args *args,
306 struct device *dev)
307{
308 return -ENODEV;
309}
310
311static inline int of_genpd_add_subdomain(struct of_phandle_args *parent,
312 struct of_phandle_args *new_subdomain)
313{
314 return -ENODEV;
315}
316
Lina Iyer30f604282016-10-14 10:47:51 -0700317static inline int of_genpd_parse_idle_states(struct device_node *dn,
318 struct genpd_power_state **states, int *n)
319{
320 return -ENODEV;
321}
322
Viresh Kumar6e417662017-11-29 15:21:51 +0530323static inline unsigned int
Viresh Kumare38f89d2018-06-13 20:22:04 +0530324pm_genpd_opp_to_performance_state(struct device *genpd_dev,
325 struct dev_pm_opp *opp)
326{
327 return 0;
328}
329
Tomasz Figaaa422402014-09-19 20:27:36 +0200330static inline int genpd_dev_pm_attach(struct device *dev)
331{
Ulf Hansson919b7302018-05-09 12:17:52 +0200332 return 0;
Tomasz Figaaa422402014-09-19 20:27:36 +0200333}
Jon Hunter17926552016-09-12 12:01:14 +0100334
Ulf Hansson3c095f32018-05-31 12:59:58 +0200335static inline struct device *genpd_dev_pm_attach_by_id(struct device *dev,
336 unsigned int index)
337{
338 return NULL;
339}
340
Ulf Hansson5d6be702018-06-29 13:04:31 +0200341static inline struct device *genpd_dev_pm_attach_by_name(struct device *dev,
Douglas Anderson7416f1f2019-02-14 10:12:48 -0800342 const char *name)
Ulf Hansson5d6be702018-06-29 13:04:31 +0200343{
344 return NULL;
345}
346
Jon Hunter17926552016-09-12 12:01:14 +0100347static inline
348struct generic_pm_domain *of_genpd_remove_last(struct device_node *np)
349{
350 return ERR_PTR(-ENOTSUPP);
351}
Tomasz Figaaa422402014-09-19 20:27:36 +0200352#endif /* CONFIG_PM_GENERIC_DOMAINS_OF */
353
Ulf Hanssonf48c7672014-09-29 13:58:47 +0200354#ifdef CONFIG_PM
Ulf Hansson781b9d62018-05-29 12:04:13 +0200355int dev_pm_domain_attach(struct device *dev, bool power_on);
Ulf Hansson82e12d92018-05-31 12:59:59 +0200356struct device *dev_pm_domain_attach_by_id(struct device *dev,
357 unsigned int index);
Ulf Hansson27dceb82018-06-29 13:04:32 +0200358struct device *dev_pm_domain_attach_by_name(struct device *dev,
Douglas Andersoneeb35df2019-02-14 10:12:49 -0800359 const char *name);
Ulf Hansson781b9d62018-05-29 12:04:13 +0200360void dev_pm_domain_detach(struct device *dev, bool power_off);
361void dev_pm_domain_set(struct device *dev, struct dev_pm_domain *pd);
Ulf Hanssonf48c7672014-09-29 13:58:47 +0200362#else
363static inline int dev_pm_domain_attach(struct device *dev, bool power_on)
364{
Ulf Hansson919b7302018-05-09 12:17:52 +0200365 return 0;
Ulf Hanssonf48c7672014-09-29 13:58:47 +0200366}
Ulf Hansson82e12d92018-05-31 12:59:59 +0200367static inline struct device *dev_pm_domain_attach_by_id(struct device *dev,
368 unsigned int index)
369{
370 return NULL;
371}
Ulf Hansson27dceb82018-06-29 13:04:32 +0200372static inline struct device *dev_pm_domain_attach_by_name(struct device *dev,
Douglas Andersoneeb35df2019-02-14 10:12:49 -0800373 const char *name)
Ulf Hansson27dceb82018-06-29 13:04:32 +0200374{
375 return NULL;
376}
Ulf Hanssonf48c7672014-09-29 13:58:47 +0200377static inline void dev_pm_domain_detach(struct device *dev, bool power_off) {}
Tomeu Vizoso989561d2016-01-07 16:46:13 +0100378static inline void dev_pm_domain_set(struct device *dev,
379 struct dev_pm_domain *pd) {}
Ulf Hanssonf48c7672014-09-29 13:58:47 +0200380#endif
381
Rafael J. Wysockif7218892011-07-01 22:12:45 +0200382#endif /* _LINUX_PM_DOMAIN_H */