File Index
Files and directories
Sign in
FILE

gk20a_devfreq.h

File preview with syntax highlighting.

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