diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gk20a_scale.h')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gk20a_scale.h | 27 |
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 | ||
24 | struct platform_device; | ||
25 | struct clk; | 24 | struct clk; |
26 | 25 | ||
27 | struct gk20a_scale_profile { | 26 | struct 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 */ |
37 | void gk20a_scale_init(struct platform_device *); | 36 | void gk20a_scale_init(struct device *); |
38 | void gk20a_scale_exit(struct platform_device *); | 37 | void gk20a_scale_exit(struct device *); |
39 | void gk20a_scale_hw_init(struct platform_device *pdev); | 38 | void 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 | */ |
46 | void gk20a_scale_notify_busy(struct platform_device *); | 45 | void gk20a_scale_notify_busy(struct device *); |
47 | void gk20a_scale_notify_idle(struct platform_device *); | 46 | void gk20a_scale_notify_idle(struct device *); |
48 | 47 | ||
49 | void gk20a_scale_suspend(struct platform_device *); | 48 | void gk20a_scale_suspend(struct device *); |
50 | void gk20a_scale_resume(struct platform_device *); | 49 | void gk20a_scale_resume(struct device *); |
51 | #else | 50 | #else |
52 | static inline void gk20a_scale_notify_busy(struct platform_device *pdev) {} | 51 | static inline void gk20a_scale_notify_busy(struct device *dev) {} |
53 | static inline void gk20a_scale_notify_idle(struct platform_device *pdev) {} | 52 | static inline void gk20a_scale_notify_idle(struct device *dev) {} |
54 | static inline void gk20a_scale_suspend(struct platform_device *pdev) {} | 53 | static inline void gk20a_scale_suspend(struct device *dev) {} |
55 | static inline void gk20a_scale_resume(struct platform_device *pdev) {} | 54 | static inline void gk20a_scale_resume(struct device *dev) {} |
56 | #endif | 55 | #endif |
57 | 56 | ||
58 | #endif | 57 | #endif |