From: Dan Williams Date: Thu, 9 Jun 2011 23:04:28 +0000 (-0700) Subject: isci: cleanup/optimize queue increment macros X-Git-Tag: v3.0-rc6~1^2~1^2~29 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=994a9303d33f8238d57f58c26067b6d4ac9af222;p=pandora-kernel.git 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 --- Reading git-diff-tree failed