• Dan Williams's avatar
    isci: cleanup/optimize queue increment macros · 994a9303
    Dan Williams authored
    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: default avatarDan Williams <dan.j.williams@intel.com>
    994a9303
unsolicited_frame_control.c 8.49 KB