Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 48295
b: refs/heads/master
c: 6bdd61d
h: refs/heads/master
i:
  48293: c882dbf
  48291: f121427
  48287: 765eda7
v: v3
  • Loading branch information
David Howells authored and Roland Dreier committed Feb 10, 2007
1 parent 12fcfd7 commit 1461655
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 839fcaba355abaffb7b44f0f4504093acb0b11cf
refs/heads/master: 6bdd61d876e6eacea5c59230b6b2d988b22793e6
9 changes: 7 additions & 2 deletions trunk/drivers/infiniband/hw/mthca/mthca_srq.c
Original file line number Diff line number Diff line change
Expand Up @@ -116,11 +116,16 @@ static void mthca_arbel_init_srq_context(struct mthca_dev *dev,
struct mthca_srq *srq,
struct mthca_arbel_srq_context *context)
{
int logsize;
int logsize, max;

memset(context, 0, sizeof *context);

logsize = ilog2(srq->max);
/*
* Put max in a temporary variable to work around gcc bug
* triggered by ilog2() on sparc64.
*/
max = srq->max;
logsize = ilog2(max);
context->state_logsize_srqn = cpu_to_be32(logsize << 24 | srq->srqn);
context->lkey = cpu_to_be32(srq->mr.ibmr.lkey);
context->db_index = cpu_to_be32(srq->db_index);
Expand Down

0 comments on commit 1461655

Please sign in to comment.