diff options
author | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-10-23 12:56:11 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-10-23 12:56:11 -0400 |
commit | 0b776eb5426752d4e53354ac89e3710d857e09a7 (patch) | |
tree | 1eebeeaabab90de5834b32e72d2e259dc8a4a635 /include | |
parent | 0d6810091cdbd05efeb31654c6a41a6cbdfdd2c8 (diff) | |
parent | 77109cc2823f025ccd66ebd9b88fbab90437b2d8 (diff) |
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/roland/infiniband
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/roland/infiniband:
mlx4_core: Increase command timeout for INIT_HCA to 10 seconds
IPoIB/cm: Use common CQ for CM send completions
IB/uverbs: Fix checking of userspace object ownership
IB/mlx4: Sanity check userspace send queue sizes
IPoIB: Rewrite "if (!likely(...))" as "if (unlikely(!(...)))"
IB/ehca: Enable large page MRs by default
IB/ehca: Change meaning of hca_cap_mr_pgsize
IB/ehca: Fix ehca_encode_hwpage_size() and alloc_fmr()
IB/ehca: Fix masking error in {,re}reg_phys_mr()
IB/ehca: Supply QP token for SRQ base QPs
IPoIB: Use round_jiffies() for ah_reap_task
RDMA/cma: Fix deadlock destroying listen requests
RDMA/cma: Add locking around QP accesses
IB/mthca: Avoid alignment traps when writing doorbells
mlx4_core: Kill mlx4_write64_raw()
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/mlx4/doorbell.h | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/include/linux/mlx4/doorbell.h b/include/linux/mlx4/doorbell.h index 3f2da442d7c..f31bba270aa 100644 --- a/include/linux/mlx4/doorbell.h +++ b/include/linux/mlx4/doorbell.h | |||
@@ -52,11 +52,6 @@ | |||
52 | #define MLX4_INIT_DOORBELL_LOCK(ptr) do { } while (0) | 52 | #define MLX4_INIT_DOORBELL_LOCK(ptr) do { } while (0) |
53 | #define MLX4_GET_DOORBELL_LOCK(ptr) (NULL) | 53 | #define MLX4_GET_DOORBELL_LOCK(ptr) (NULL) |
54 | 54 | ||
55 | static inline void mlx4_write64_raw(__be64 val, void __iomem *dest) | ||
56 | { | ||
57 | __raw_writeq((__force u64) val, dest); | ||
58 | } | ||
59 | |||
60 | static inline void mlx4_write64(__be32 val[2], void __iomem *dest, | 55 | static inline void mlx4_write64(__be32 val[2], void __iomem *dest, |
61 | spinlock_t *doorbell_lock) | 56 | spinlock_t *doorbell_lock) |
62 | { | 57 | { |
@@ -75,12 +70,6 @@ static inline void mlx4_write64(__be32 val[2], void __iomem *dest, | |||
75 | #define MLX4_INIT_DOORBELL_LOCK(ptr) spin_lock_init(ptr) | 70 | #define MLX4_INIT_DOORBELL_LOCK(ptr) spin_lock_init(ptr) |
76 | #define MLX4_GET_DOORBELL_LOCK(ptr) (ptr) | 71 | #define MLX4_GET_DOORBELL_LOCK(ptr) (ptr) |
77 | 72 | ||
78 | static inline void mlx4_write64_raw(__be64 val, void __iomem *dest) | ||
79 | { | ||
80 | __raw_writel(((__force u32 *) &val)[0], dest); | ||
81 | __raw_writel(((__force u32 *) &val)[1], dest + 4); | ||
82 | } | ||
83 | |||
84 | static inline void mlx4_write64(__be32 val[2], void __iomem *dest, | 73 | static inline void mlx4_write64(__be32 val[2], void __iomem *dest, |
85 | spinlock_t *doorbell_lock) | 74 | spinlock_t *doorbell_lock) |
86 | { | 75 | { |