diff options
author | Deepak Nibade <dnibade@nvidia.com> | 2017-10-31 09:11:57 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-11-02 13:26:21 -0400 |
commit | 25440e63d2dfd329ba35aec48f11f0c20b18cdbd (patch) | |
tree | d66fe69181c8d54dd3fb0deefa018558e4359e0b /drivers/gpu/nvgpu/pmgr | |
parent | 2d71b3efaebb9807cb039979f1ce7dc621fb658f (diff) |
gpu: nvgpu: move platform_gk20a.h to linux
Move gk20a/platform_gk20a.h to linux specific directory as
common/linux/platform_gk20a.h since this file includes all linux specific
stuff
Fix #includes in all the files to include this file with correct path
Remove #include of this file where it is no more needed
Fix gk20a_init_sim_support() to receive struct gk20a as parameter
instead of receiving linux specific struct platform_device
NVGPU-316
Change-Id: I5ec08e776b753af4d39d11c11f6f068be2ac236f
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1589938
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/pmgr')
-rw-r--r-- | drivers/gpu/nvgpu/pmgr/pmgrpmu.c | 2 | ||||
-rw-r--r-- | drivers/gpu/nvgpu/pmgr/pwrpolicy.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/pmgr/pmgrpmu.c b/drivers/gpu/nvgpu/pmgr/pmgrpmu.c index afc92d66..6913c280 100644 --- a/drivers/gpu/nvgpu/pmgr/pmgrpmu.c +++ b/drivers/gpu/nvgpu/pmgr/pmgrpmu.c | |||
@@ -25,9 +25,9 @@ | |||
25 | #include <nvgpu/pmu.h> | 25 | #include <nvgpu/pmu.h> |
26 | 26 | ||
27 | #include "gk20a/gk20a.h" | 27 | #include "gk20a/gk20a.h" |
28 | #include "gk20a/platform_gk20a.h" | ||
29 | #include "gp106/bios_gp106.h" | 28 | #include "gp106/bios_gp106.h" |
30 | #include "common/linux/os_linux.h" | 29 | #include "common/linux/os_linux.h" |
30 | #include "common/linux/platform_gk20a.h" | ||
31 | 31 | ||
32 | #include "boardobj/boardobjgrp.h" | 32 | #include "boardobj/boardobjgrp.h" |
33 | #include "boardobj/boardobjgrp_e32.h" | 33 | #include "boardobj/boardobjgrp_e32.h" |
diff --git a/drivers/gpu/nvgpu/pmgr/pwrpolicy.c b/drivers/gpu/nvgpu/pmgr/pwrpolicy.c index 37fff2d4..5eade2e0 100644 --- a/drivers/gpu/nvgpu/pmgr/pwrpolicy.c +++ b/drivers/gpu/nvgpu/pmgr/pwrpolicy.c | |||
@@ -24,12 +24,12 @@ | |||
24 | #include <nvgpu/bug.h> | 24 | #include <nvgpu/bug.h> |
25 | 25 | ||
26 | #include "gk20a/gk20a.h" | 26 | #include "gk20a/gk20a.h" |
27 | #include "gk20a/platform_gk20a.h" | ||
28 | #include "pwrpolicy.h" | 27 | #include "pwrpolicy.h" |
29 | #include "boardobj/boardobjgrp.h" | 28 | #include "boardobj/boardobjgrp.h" |
30 | #include "boardobj/boardobjgrp_e32.h" | 29 | #include "boardobj/boardobjgrp_e32.h" |
31 | #include "gp106/bios_gp106.h" | 30 | #include "gp106/bios_gp106.h" |
32 | #include "common/linux/os_linux.h" | 31 | #include "common/linux/os_linux.h" |
32 | #include "common/linux/platform_gk20a.h" | ||
33 | 33 | ||
34 | #define _pwr_policy_limitarboutputget_helper(p_limit_arb) (p_limit_arb)->output | 34 | #define _pwr_policy_limitarboutputget_helper(p_limit_arb) (p_limit_arb)->output |
35 | #define _pwr_policy_limitdeltaapply(limit, delta) ((u32)max(((s32)limit) + (delta), 0)) | 35 | #define _pwr_policy_limitdeltaapply(limit, delta) ((u32)max(((s32)limit) + (delta), 0)) |