diff options
author | Terje Bergstrom <tbergstrom@nvidia.com> | 2017-04-14 18:40:47 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-04-26 12:14:26 -0400 |
commit | 71af78d2c22c6519b1ae2cbe3826f05e178d86f6 (patch) | |
tree | d5b1b51c9fe318caebea65b872153d2da977e278 /drivers/gpu/nvgpu/gk20a/channel_sync_gk20a.c | |
parent | 388113aa19c202edd261e49f8c169f0b31ade784 (diff) |
gpu: nvgpu: Move has_syncpts to gk20a
Copy has_syncpts to struct gk20a at probe time, and access it from
gk20a instead of platform_gk20a.
JIRA NVGPU-16
Change-Id: I50329e3a5141a62e6e9828e97ea0747abc1ce1ee
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/1463545
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/channel_sync_gk20a.c')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/channel_sync_gk20a.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/channel_sync_gk20a.c b/drivers/gpu/nvgpu/gk20a/channel_sync_gk20a.c index 3fb35e94..ddd94a2d 100644 --- a/drivers/gpu/nvgpu/gk20a/channel_sync_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/channel_sync_gk20a.c | |||
@@ -966,7 +966,7 @@ void gk20a_channel_sync_destroy(struct gk20a_channel_sync *sync) | |||
966 | struct gk20a_channel_sync *gk20a_channel_sync_create(struct channel_gk20a *c) | 966 | struct gk20a_channel_sync *gk20a_channel_sync_create(struct channel_gk20a *c) |
967 | { | 967 | { |
968 | #ifdef CONFIG_TEGRA_GK20A_NVHOST | 968 | #ifdef CONFIG_TEGRA_GK20A_NVHOST |
969 | if (gk20a_platform_has_syncpoints(c->g->dev)) | 969 | if (gk20a_platform_has_syncpoints(c->g)) |
970 | return gk20a_channel_syncpt_create(c); | 970 | return gk20a_channel_syncpt_create(c); |
971 | #endif | 971 | #endif |
972 | return gk20a_channel_semaphore_create(c); | 972 | return gk20a_channel_semaphore_create(c); |
@@ -974,7 +974,7 @@ struct gk20a_channel_sync *gk20a_channel_sync_create(struct channel_gk20a *c) | |||
974 | 974 | ||
975 | bool gk20a_channel_sync_needs_sync_framework(struct channel_gk20a *c) | 975 | bool gk20a_channel_sync_needs_sync_framework(struct channel_gk20a *c) |
976 | { | 976 | { |
977 | if (gk20a_platform_has_syncpoints(c->g->dev)) | 977 | if (gk20a_platform_has_syncpoints(c->g)) |
978 | return false; | 978 | return false; |
979 | return true; | 979 | return true; |
980 | } | 980 | } |