[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)
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>

No differences found