summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/gk20a_scale.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gk20a_scale.h')
-rw-r--r--drivers/gpu/nvgpu/gk20a/gk20a_scale.h27
1 files changed, 13 insertions, 14 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a_scale.h b/drivers/gpu/nvgpu/gk20a/gk20a_scale.h
index 889a3973..5c8618eb 100644
--- a/drivers/gpu/nvgpu/gk20a/gk20a_scale.h
+++ b/drivers/gpu/nvgpu/gk20a/gk20a_scale.h
@@ -1,7 +1,7 @@
1/* 1/*
2 * gk20a clock scaling profile 2 * gk20a clock scaling profile
3 * 3 *
4 * Copyright (c) 2013-2015, NVIDIA Corporation. All rights reserved. 4 * Copyright (c) 2013-2016, NVIDIA Corporation. All rights reserved.
5 * 5 *
6 * This program is free software; you can redistribute it and/or modify it 6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms and conditions of the GNU General Public License, 7 * under the terms and conditions of the GNU General Public License,
@@ -21,11 +21,10 @@
21 21
22#include <linux/devfreq.h> 22#include <linux/devfreq.h>
23 23
24struct platform_device;
25struct clk; 24struct clk;
26 25
27struct gk20a_scale_profile { 26struct gk20a_scale_profile {
28 struct platform_device *pdev; 27 struct device *dev;
29 ktime_t last_event_time; 28 ktime_t last_event_time;
30 struct devfreq_dev_profile devfreq_profile; 29 struct devfreq_dev_profile devfreq_profile;
31 struct devfreq_dev_status dev_stat; 30 struct devfreq_dev_status dev_stat;
@@ -34,25 +33,25 @@ struct gk20a_scale_profile {
34}; 33};
35 34
36/* Initialization and de-initialization for module */ 35/* Initialization and de-initialization for module */
37void gk20a_scale_init(struct platform_device *); 36void gk20a_scale_init(struct device *);
38void gk20a_scale_exit(struct platform_device *); 37void gk20a_scale_exit(struct device *);
39void gk20a_scale_hw_init(struct platform_device *pdev); 38void gk20a_scale_hw_init(struct device *dev);
40 39
41#if defined(CONFIG_GK20A_DEVFREQ) 40#if defined(CONFIG_GK20A_DEVFREQ)
42/* 41/*
43 * call when performing submit to notify scaling mechanism that the module is 42 * call when performing submit to notify scaling mechanism that the module is
44 * in use 43 * in use
45 */ 44 */
46void gk20a_scale_notify_busy(struct platform_device *); 45void gk20a_scale_notify_busy(struct device *);
47void gk20a_scale_notify_idle(struct platform_device *); 46void gk20a_scale_notify_idle(struct device *);
48 47
49void gk20a_scale_suspend(struct platform_device *); 48void gk20a_scale_suspend(struct device *);
50void gk20a_scale_resume(struct platform_device *); 49void gk20a_scale_resume(struct device *);
51#else 50#else
52static inline void gk20a_scale_notify_busy(struct platform_device *pdev) {} 51static inline void gk20a_scale_notify_busy(struct device *dev) {}
53static inline void gk20a_scale_notify_idle(struct platform_device *pdev) {} 52static inline void gk20a_scale_notify_idle(struct device *dev) {}
54static inline void gk20a_scale_suspend(struct platform_device *pdev) {} 53static inline void gk20a_scale_suspend(struct device *dev) {}
55static inline void gk20a_scale_resume(struct platform_device *pdev) {} 54static inline void gk20a_scale_resume(struct device *dev) {}
56#endif 55#endif
57 56
58#endif 57#endif