Skip to content

Commit 38702cc

Browse files
Maxim MikityanskiySaeed Mahameed
authored andcommitted
net/mlx5: Remove unused MLX5_*_DOORBELL_LOCK macros
MLX5_*_DOORBELL_LOCK macros provided a way to avoid locking for mlx5_write64 on 64-bit platforms where it's not necessary. Currently all calls to mlx5_write64 don't use a spinlock, so the macros became unused. Signed-off-by: Maxim Mikityanskiy <maximmi@mellanox.com> Reviewed-by: Eran Ben Elisha <eranbe@mellanox.com> Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
1 parent 37b6bb7 commit 38702cc

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

‎include/linux/mlx5/doorbell.h‎

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,6 @@
4242
* PCI so we won't worry about it.
4343
*/
4444

45-
#define MLX5_DECLARE_DOORBELL_LOCK(name)
46-
#define MLX5_INIT_DOORBELL_LOCK(ptr) do { } while (0)
47-
#define MLX5_GET_DOORBELL_LOCK(ptr) (NULL)
48-
4945
static inline void mlx5_write64(__be32 val[2], void __iomem *dest,
5046
spinlock_t *doorbell_lock)
5147
{
@@ -59,10 +55,6 @@ static inline void mlx5_write64(__be32 val[2], void __iomem *dest,
5955
* MMIO writes.
6056
*/
6157

62-
#define MLX5_DECLARE_DOORBELL_LOCK(name) spinlock_t name;
63-
#define MLX5_INIT_DOORBELL_LOCK(ptr) spin_lock_init(ptr)
64-
#define MLX5_GET_DOORBELL_LOCK(ptr) (ptr)
65-
6658
static inline void mlx5_write64(__be32 val[2], void __iomem *dest,
6759
spinlock_t *doorbell_lock)
6860
{

0 commit comments

Comments
 (0)