isci: cleanup/optimize queue increment macros
authorDan Williams <dan.j.williams@intel.com>
Thu, 9 Jun 2011 23:04:28 +0000 (16:04 -0700)
committerDan Williams <dan.j.williams@intel.com>
Sun, 3 Jul 2011 11:04:51 +0000 (04:04 -0700)
commit994a9303d33f8238d57f58c26067b6d4ac9af222
tree8a7a1f680761ee3cfb2a258c2784194eea69b703
parentdd047c8e2bca22856050dbe0378a37cf44eecc97
isci: cleanup/optimize queue increment macros

Every single i/o or event completion incurs a test and branch to see if
the cycle bit changed.  For power-of-2 queue sizes the cycle bit can be
read directly from the rollover of the queue pointer.

Likely premature optimization, but the hidden if() and hidden
assignments / side-effects in the macros were already asking to be
cleaned up.

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/unsolicited_frame_control.c