linux_dsm_epyc7002/drivers/infiniband/hw/ocrdma
Rasmus Villemoes ba64fdca63 RDMA/ocrdma: Help gcc generate better code for ocrdma_srq_toggle_bit
gcc emits a surprising amount of code in order to flip a bit. One
would think that a single instruction is enough.

$ scripts/bloat-o-meter /tmp/ocrdma_verbs.o drivers/infiniband/hw/ocrdma/ocrdma_verbs.o
add/remove: 0/0 grow/shrink: 0/3 up/down: 0/-142 (-142)
function                                     old     new   delta
ocrdma_post_srq_recv                         498     460     -38
ocrdma_poll_cq                              2010    1962     -48
ocrdma_discard_cqes                          495     439     -56

All three calls of ocrdma_srq_toggle_bit happen within spinlocks, so
saving a few useless instructions might be worthwhile.

Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Acked-by: Selvin Xavier <selvin.xavier@emulex.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
2015-02-18 08:31:05 -08:00
..
Kconfig RDMA/ocrdma: Add dependency on INET 2014-01-19 15:16:23 -08:00
Makefile RDMA/ocrdma: Query controller information 2014-04-03 08:30:05 -07:00
ocrdma_abi.h RDMA/ocrdma: Code clean-up 2014-04-03 08:30:06 -07:00
ocrdma_ah.c RDMA/ocrdma: set vlan present bit for user AH 2015-02-18 08:31:05 -08:00
ocrdma_ah.h RDMA/ocrdma: set vlan present bit for user AH 2015-02-18 08:31:05 -08:00
ocrdma_hw.c RDMA/ocrdma: remove reference of ocrdma_dev out of ocrdma_qp structure 2015-02-18 08:31:04 -08:00
ocrdma_hw.h RDMA/ocrdma: Move PD resource management to driver. 2015-02-18 08:30:59 -08:00
ocrdma_main.c RDMA/ocrdma: Add support for interrupt moderation 2015-02-18 08:31:04 -08:00
ocrdma_sli.h RDMA/ocrdma: set vlan present bit for user AH 2015-02-18 08:31:05 -08:00
ocrdma_stats.c RDMA/ocrdma: Debugfs enhancments for ocrdma driver 2015-02-18 08:31:02 -08:00
ocrdma_stats.h RDMA/ocrdma: Debugfs enhancments for ocrdma driver 2015-02-18 08:31:02 -08:00
ocrdma_verbs.c RDMA/ocrdma: Help gcc generate better code for ocrdma_srq_toggle_bit 2015-02-18 08:31:05 -08:00
ocrdma_verbs.h RDMA/ocrdma: For ERX2 irrespective of Qid, num_posted offset is 24 2013-09-02 21:17:55 -07:00
ocrdma.h RDMA/ocrdma: Update the ocrdma module version string 2015-02-18 08:31:05 -08:00