Skip to content

Commit 7ccc2a0

Browse files
Dr. David Alan Gilbertjgunthorpe
authored andcommitted
IB/hfi1: Remove unused sc_drop and sdma_all_idle
sc_drop() and sdma_all_idle() were both added in 2015's commit 7724105 ("IB/hfi1: add driver files") but have remained unused. Remove them. Link: https://patch.msgid.link/r/[email protected] Signed-off-by: Dr. David Alan Gilbert <[email protected]> Signed-off-by: Jason Gunthorpe <[email protected]>
1 parent 5d2ea5a commit 7ccc2a0

File tree

4 files changed

+0
-30
lines changed

4 files changed

+0
-30
lines changed

drivers/infiniband/hw/hfi1/pio.c

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1361,16 +1361,6 @@ void sc_flush(struct send_context *sc)
13611361
sc_wait_for_packet_egress(sc, 1);
13621362
}
13631363

1364-
/* drop all packets on the context, no waiting until they are sent */
1365-
void sc_drop(struct send_context *sc)
1366-
{
1367-
if (!sc)
1368-
return;
1369-
1370-
dd_dev_info(sc->dd, "%s: context %u(%u) - not implemented\n",
1371-
__func__, sc->sw_index, sc->hw_context);
1372-
}
1373-
13741364
/*
13751365
* Start the software reaction to a context halt or SPC freeze:
13761366
* - mark the context as halted or frozen

drivers/infiniband/hw/hfi1/pio.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,6 @@ void sc_disable(struct send_context *sc);
246246
int sc_restart(struct send_context *sc);
247247
void sc_return_credits(struct send_context *sc);
248248
void sc_flush(struct send_context *sc);
249-
void sc_drop(struct send_context *sc);
250249
void sc_stop(struct send_context *sc, int bit);
251250
struct pio_buf *sc_buffer_alloc(struct send_context *sc, u32 dw_len,
252251
pio_release_cb cb, void *arg);

drivers/infiniband/hw/hfi1/sdma.c

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1520,24 +1520,6 @@ void sdma_all_running(struct hfi1_devdata *dd)
15201520
}
15211521
}
15221522

1523-
/**
1524-
* sdma_all_idle() - called when the link goes down
1525-
* @dd: hfi1_devdata
1526-
*
1527-
* This routine moves all engines to the idle state.
1528-
*/
1529-
void sdma_all_idle(struct hfi1_devdata *dd)
1530-
{
1531-
struct sdma_engine *sde;
1532-
unsigned int i;
1533-
1534-
/* idle all engines */
1535-
for (i = 0; i < dd->num_sdma; ++i) {
1536-
sde = &dd->per_sdma[i];
1537-
sdma_process_event(sde, sdma_event_e70_go_idle);
1538-
}
1539-
}
1540-
15411523
/**
15421524
* sdma_start() - called to kick off state processing for all engines
15431525
* @dd: hfi1_devdata

drivers/infiniband/hw/hfi1/sdma.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,6 @@ void sdma_start(struct hfi1_devdata *dd);
373373
void sdma_exit(struct hfi1_devdata *dd);
374374
void sdma_clean(struct hfi1_devdata *dd, size_t num_engines);
375375
void sdma_all_running(struct hfi1_devdata *dd);
376-
void sdma_all_idle(struct hfi1_devdata *dd);
377376
void sdma_freeze_notify(struct hfi1_devdata *dd, int go_idle);
378377
void sdma_freeze(struct hfi1_devdata *dd);
379378
void sdma_unfreeze(struct hfi1_devdata *dd);

0 commit comments

Comments
 (0)