fsldma: reduce kernel text size
authorIra Snyder <iws@ovro.caltech.edu>
Wed, 6 Jan 2010 13:33:59 +0000 (13:33 +0000)
committerDan Williams <dan.j.williams@intel.com>
Tue, 2 Feb 2010 21:51:40 +0000 (14:51 -0700)
commit272ca655090978bdaa2630fc44fb2c03da5576fd
tree3ad63195951405f4a51c44f1a57f125415d649e6
parentabe94c756c08d50566c09a65b9c7fe72f83071c5
fsldma: reduce kernel text size

Some of the functions are written in a way where they use multiple reads
and writes where a single read/write pair could suffice. This shrinks the
kernel text size measurably, while making the functions easier to
understand.

add/remove: 0/0 grow/shrink: 1/4 up/down: 4/-196 (-192)
function                                     old     new   delta
fsl_chan_set_request_count                   120     124      +4
dma_halt                                     300     272     -28
fsl_chan_set_src_loop_size                   208     156     -52
fsl_chan_set_dest_loop_size                  208     156     -52
fsl_chan_xfer_ld_queue                       500     436     -64

Signed-off-by: Ira W. Snyder <iws@ovro.caltech.edu>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/dma/fsldma.c