diff options
Diffstat (limited to 'drivers/gpu/nvgpu/include')
-rw-r--r-- | drivers/gpu/nvgpu/include/nvgpu/gk20a.h | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/drivers/gpu/nvgpu/include/nvgpu/gk20a.h b/drivers/gpu/nvgpu/include/nvgpu/gk20a.h index 8d7ccfa8..8627fddd 100644 --- a/drivers/gpu/nvgpu/include/nvgpu/gk20a.h +++ b/drivers/gpu/nvgpu/include/nvgpu/gk20a.h | |||
@@ -1485,7 +1485,6 @@ struct gk20a { | |||
1485 | unsigned int aggressive_sync_destroy_thresh; | 1485 | unsigned int aggressive_sync_destroy_thresh; |
1486 | bool aggressive_sync_destroy; | 1486 | bool aggressive_sync_destroy; |
1487 | 1487 | ||
1488 | bool has_syncpoints; | ||
1489 | /* Debugfs knob for forcing syncpt support off in runtime. */ | 1488 | /* Debugfs knob for forcing syncpt support off in runtime. */ |
1490 | u32 disable_syncpoints; | 1489 | u32 disable_syncpoints; |
1491 | 1490 | ||
@@ -1758,13 +1757,6 @@ void nvgpu_wait_for_deferred_interrupts(struct gk20a *g); | |||
1758 | struct gk20a * __must_check gk20a_get(struct gk20a *g); | 1757 | struct gk20a * __must_check gk20a_get(struct gk20a *g); |
1759 | void gk20a_put(struct gk20a *g); | 1758 | void gk20a_put(struct gk20a *g); |
1760 | 1759 | ||
1761 | static inline bool gk20a_platform_has_syncpoints(struct gk20a *g) | 1760 | bool nvgpu_has_syncpoints(struct gk20a *g); |
1762 | { | ||
1763 | #ifdef CONFIG_TEGRA_GK20A_NVHOST | ||
1764 | return g->has_syncpoints && !g->disable_syncpoints; | ||
1765 | #else | ||
1766 | return false; | ||
1767 | #endif | ||
1768 | } | ||
1769 | 1761 | ||
1770 | #endif /* GK20A_H */ | 1762 | #endif /* GK20A_H */ |