Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 76799
b: refs/heads/master
c: 9ab4295
h: refs/heads/master
i:
  76797: 72c1143
  76795: 7918623
  76791: 876bc6b
  76783: 1d04729
  76767: c192a5f
  76735: e2597d1
  76671: fa98c8f
  76543: b89e3e9
  76287: 9c66f64
  75775: 83ddbd3
v: v3
  • Loading branch information
Ralph Campbell authored and Roland Dreier committed Jan 25, 2008
1 parent b4dbf1d commit 7464370
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 31 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: 457fe7b8a6822907cbe65897dc81b83d9df5bcbf
refs/heads/master: 9ab4295d1d9ab10a249aea002060685f935a528c
26 changes: 0 additions & 26 deletions trunk/drivers/infiniband/hw/ipath/ipath_intr.c
Original file line number Diff line number Diff line change
Expand Up @@ -920,29 +920,6 @@ static noinline void ipath_bad_regread(struct ipath_devdata *dd)
}
}

static void handle_port_pioavail(struct ipath_devdata *dd)
{
u32 i;
/*
* start from port 1, since for now port 0 is never using
* wait_event for PIO
*/
for (i = 1; dd->ipath_portpiowait && i < dd->ipath_cfgports; i++) {
struct ipath_portdata *pd = dd->ipath_pd[i];

if (pd && pd->port_cnt &&
dd->ipath_portpiowait & (1U << i)) {
clear_bit(i, &dd->ipath_portpiowait);
if (test_bit(IPATH_PORT_WAITING_PIO,
&pd->port_flag)) {
clear_bit(IPATH_PORT_WAITING_PIO,
&pd->port_flag);
wake_up_interruptible(&pd->port_wait);
}
}
}
}

static void handle_layer_pioavail(struct ipath_devdata *dd)
{
int ret;
Expand Down Expand Up @@ -1195,9 +1172,6 @@ irqreturn_t ipath_intr(int irq, void *data)
ipath_write_kreg(dd, dd->ipath_kregs->kr_sendctrl,
dd->ipath_sendctrl);

if (dd->ipath_portpiowait)
handle_port_pioavail(dd);

handle_layer_pioavail(dd);
}

Expand Down
4 changes: 0 additions & 4 deletions trunk/drivers/infiniband/hw/ipath/ipath_kernel.h
Original file line number Diff line number Diff line change
Expand Up @@ -457,8 +457,6 @@ struct ipath_devdata {
unsigned long ipath_rcvctrl;
/* shadow kr_sendctrl */
unsigned long ipath_sendctrl;
/* ports waiting for PIOavail intr */
unsigned long ipath_portpiowait;
unsigned long ipath_lastcancel; /* to not count armlaunch after cancel */

/* value we put in kr_rcvhdrcnt */
Expand Down Expand Up @@ -759,8 +757,6 @@ int ipath_set_rx_pol_inv(struct ipath_devdata *dd, u8 new_pol_inv);
/* portdata flag bit offsets */
/* waiting for a packet to arrive */
#define IPATH_PORT_WAITING_RCV 2
/* waiting for a PIO buffer to be available */
#define IPATH_PORT_WAITING_PIO 3
/* master has not finished initializing */
#define IPATH_PORT_MASTER_UNINIT 4
/* waiting for an urgent packet to arrive */
Expand Down

0 comments on commit 7464370

Please sign in to comment.