isci: cleanup/optimize pool implementation
authorDan Williams <dan.j.williams@intel.com>
Wed, 8 Jun 2011 01:50:55 +0000 (18:50 -0700)
committerDan Williams <dan.j.williams@intel.com>
Sun, 3 Jul 2011 11:04:51 +0000 (04:04 -0700)
commitac668c69709c7d927015c5cf3d9e87bf4eaaf57d
tree16a42117d260a86b8217d266ab65b25438c48e06
parent9b917987fd16d0687afe550a02f68099419f5d43
isci: cleanup/optimize pool implementation

The circ_buf macros are ~6% faster, as measured by perf, because they take
advantage of power-of-two math assumptions i.e. no test and branch for
rollover. Their semantics are clearer than the hidden side effects in pool.h
(like sci_pool_get() which hides an assignment).

Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/scsi/isci/host.c
drivers/scsi/isci/host.h
drivers/scsi/isci/isci.h
drivers/scsi/isci/pool.h [deleted file]