History

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.

Maxim Mikityanskiy committed 7 years ago

Commit 38702cc1 parent 37b6bb71 file · +0 −8Browse files

Showing the changes to include/linux (1 of 1 file). Show all

Unified · Split

include/linux/mlx5/doorbell.h+0−8
@@ -42,10 +42,6 @@ · 41 unmodified lines
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, · 7 unmodified lines
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 {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t