diff options
author | Lucas Stach <l.stach@pengutronix.de> | 2018-11-05 18:12:39 +0100 |
---|---|---|
committer | Lucas Stach <l.stach@pengutronix.de> | 2018-11-06 17:56:37 +0100 |
commit | 3283ee771c88bdf28d427b7ff0831a13213a812c (patch) | |
tree | 917598327ce417cf9f8bffc036e8a76a9936f307 /drivers/gpu/drm/etnaviv/etnaviv_drv.h | |
parent | f4163814813fb3f3f6f2fd791429bd41135f1f79 (diff) | |
download | linux-stable-3283ee771c88bdf28d427b7ff0831a13213a812c.tar.gz linux-stable-3283ee771c88bdf28d427b7ff0831a13213a812c.tar.bz2 linux-stable-3283ee771c88bdf28d427b7ff0831a13213a812c.zip |
drm/etnaviv: consolidate hardware fence handling in etnaviv_gpu
This is the only place in the driver that should have to deal with
the raw hardware fences. To avoid any further confusion, consolidate
the fence handling in this file and remove any traces of this from
the header files.
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Reviewed-by: Philipp Zabel <p.zabel@pengutronix.de>
Diffstat (limited to 'drivers/gpu/drm/etnaviv/etnaviv_drv.h')
-rw-r--r-- | drivers/gpu/drm/etnaviv/etnaviv_drv.h | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/drivers/gpu/drm/etnaviv/etnaviv_drv.h b/drivers/gpu/drm/etnaviv/etnaviv_drv.h index 8d02d1b7dcf5..4bf698de5996 100644 --- a/drivers/gpu/drm/etnaviv/etnaviv_drv.h +++ b/drivers/gpu/drm/etnaviv/etnaviv_drv.h @@ -107,17 +107,6 @@ static inline size_t size_vstruct(size_t nelem, size_t elem_size, size_t base) return base + nelem * elem_size; } -/* returns true if fence a comes after fence b */ -static inline bool fence_after(u32 a, u32 b) -{ - return (s32)(a - b) > 0; -} - -static inline bool fence_after_eq(u32 a, u32 b) -{ - return (s32)(a - b) >= 0; -} - /* * Etnaviv timeouts are specified wrt CLOCK_MONOTONIC, not jiffies. * We need to calculate the timeout in terms of number of jiffies |