1 /* SPDX-License-Identifier: MIT */ 2 #ifndef __GK20A_DEVFREQ_H__ 3 #define __GK20A_DEVFREQ_H__ 4 5 #include <linux/devfreq.h> 6 7 struct gk20a_devfreq; 8 9 #if defined(CONFIG_PM_DEVFREQ) 10 int gk20a_devfreq_init(struct nvkm_clk *base, struct gk20a_devfreq **devfreq); 11 12 int gk20a_devfreq_resume(struct device *dev); 13 int gk20a_devfreq_suspend(struct device *dev); 14 #else 15 static inline int gk20a_devfreq_init(struct nvkm_clk *base, struct gk20a_devfreq **devfreq) 16 { 17 return 0; 18 } 19 20 static inline int gk20a_devfreq_resume(struct device dev) { return 0; } 21 static inline int gk20a_devfreq_suspend(struct device *dev) { return 0; } 22 #endif /* CONFIG_PM_DEVFREQ */ 23 24 #endif /* __GK20A_DEVFREQ_H__ */ 25