diff options
Diffstat (limited to 'drivers/infiniband/hw/qib/qib_verbs.h')
-rw-r--r-- | drivers/infiniband/hw/qib/qib_verbs.h | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/drivers/infiniband/hw/qib/qib_verbs.h b/drivers/infiniband/hw/qib/qib_verbs.h index bd57c1273225..a08ceab510e1 100644 --- a/drivers/infiniband/hw/qib/qib_verbs.h +++ b/drivers/infiniband/hw/qib/qib_verbs.h | |||
@@ -435,7 +435,6 @@ struct qib_qp { | |||
435 | spinlock_t r_lock; /* used for APM */ | 435 | spinlock_t r_lock; /* used for APM */ |
436 | spinlock_t s_lock; | 436 | spinlock_t s_lock; |
437 | atomic_t s_dma_busy; | 437 | atomic_t s_dma_busy; |
438 | unsigned processor_id; /* Processor ID QP is bound to */ | ||
439 | u32 s_flags; | 438 | u32 s_flags; |
440 | u32 s_cur_size; /* size of send packet in bytes */ | 439 | u32 s_cur_size; /* size of send packet in bytes */ |
441 | u32 s_len; /* total length of s_sge */ | 440 | u32 s_len; /* total length of s_sge */ |
@@ -813,13 +812,8 @@ extern struct workqueue_struct *qib_cq_wq; | |||
813 | */ | 812 | */ |
814 | static inline void qib_schedule_send(struct qib_qp *qp) | 813 | static inline void qib_schedule_send(struct qib_qp *qp) |
815 | { | 814 | { |
816 | if (qib_send_ok(qp)) { | 815 | if (qib_send_ok(qp)) |
817 | if (qp->processor_id == smp_processor_id()) | 816 | queue_work(qib_wq, &qp->s_work); |
818 | queue_work(qib_wq, &qp->s_work); | ||
819 | else | ||
820 | queue_work_on(qp->processor_id, | ||
821 | qib_wq, &qp->s_work); | ||
822 | } | ||
823 | } | 817 | } |
824 | 818 | ||
825 | static inline int qib_pkey_ok(u16 pkey1, u16 pkey2) | 819 | static inline int qib_pkey_ok(u16 pkey1, u16 pkey2) |