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.
Showing the changes to include/linux (1 of 1 file). Show all
Unified · Split
| @@ -42,10 +42,6 @@ · 41 unmodified lines | |||
| 42 | * PCI so we won't worry about it. | 42 | * PCI so we won't worry about it. |
| 43 | */ | 43 | */ |
| 44 | 44 | ||
| 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 | |||
| 49 | static inline void mlx5_write64(__be32 val[2], void __iomem *dest, | 45 | static inline void mlx5_write64(__be32 val[2], void __iomem *dest, |
| 50 | spinlock_t *doorbell_lock) | 46 | spinlock_t *doorbell_lock) |
| 51 | { | 47 | { |
| @@ -59,10 +55,6 @@ static inline void mlx5_write64(__be32 val[2], void __iomem *dest, · 7 unmodified lines | |||
| 59 | * MMIO writes. | 55 | * MMIO writes. |
| 60 | */ | 56 | */ |
| 61 | 57 | ||
| 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 | |||
| 66 | static inline void mlx5_write64(__be32 val[2], void __iomem *dest, | 58 | static inline void mlx5_write64(__be32 val[2], void __iomem *dest, |
| 67 | spinlock_t *doorbell_lock) | 59 | spinlock_t *doorbell_lock) |
| 68 | { | 60 | { |