]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[SCSI] megaraid_sas: frame count optimization
authorSumant Patro <sumantp@lsil.com>
Tue, 3 Oct 2006 19:40:47 +0000 (12:40 -0700)
committerJames Bottomley <jejb@mulgrave.il.steeleye.com>
Wed, 4 Oct 2006 17:48:17 +0000 (12:48 -0500)
commitb1df99d9434edf3fc26f9e36ee6a443e3611e829
tree97ce3f2351ea1a18838aea113cb79b21539d1498
parente3bbff9f3cf91c84c76cfdd5e80041ad1b487192
[SCSI] megaraid_sas: frame count optimization

This patch removes duplicated code in frame calculation &  adds
megasas_get_frame_count() that also takes into account the number of frames
that can be contained in the Main frame.
FW uses the frame count to pull sufficient number of frames from host memory.

Signed-off-by: Sumant Patro <Sumant.Patro@lsil.com>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
drivers/scsi/megaraid/megaraid_sas.c