[PATCH 11/19] pmdomain: add stub definition for pm_runtime_put_genpd

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Putting a runtime PM reference will send a device into runtime suspend
once no users remain.

We don't do reference counting for users and don't mind power domains
remaining enabled as the kernel will enable unused power domains on its
own anyway. Thus implement pm_runtime_put_genpd() as empty stub.

Signed-off-by: Ahmad Fatoum <a.fatoum@xxxxxxxxxxxxxx>
---
 include/pm_domain.h | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/include/pm_domain.h b/include/pm_domain.h
index 118770023150..1fa7f0bdbd3e 100644
--- a/include/pm_domain.h
+++ b/include/pm_domain.h
@@ -180,4 +180,11 @@ static inline void dev_pm_domain_detach(struct device *dev, bool power_off)
 	 * start doing reference counting
 	 */
 }
+
+static inline void pm_runtime_put_genpd(struct device *dev)
+{
+	/* Just keep power domain enabled until pm_runtime_resume_and_get_genpd
+	 * starts doing reference counting
+	 */
+}
 #endif
-- 
2.39.2





[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux