diff options
author | Dan Williams <dan.j.williams@intel.com> | 2008-07-17 17:59:56 -0700 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2008-07-17 17:59:56 -0700 |
commit | 2a46fa13d788364c093c4296fe01cae837aa8919 (patch) | |
tree | bb158cad1ef0bc701a1fcb90a526cee9c1d63d66 /include/asm-arm/hardware | |
parent | 5eb907aaaf7a316a0097ff9f8c21bf9fc468a1f1 (diff) | |
download | op-kernel-dev-2a46fa13d788364c093c4296fe01cae837aa8919.zip op-kernel-dev-2a46fa13d788364c093c4296fe01cae837aa8919.tar.gz |
iop_adma: cleanup iop_chan_xor_slot_count
- use a table for iop13xx, trade text for data
- shrink the iop3xx to a cache line
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'include/asm-arm/hardware')
-rw-r--r-- | include/asm-arm/hardware/iop3xx-adma.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/asm-arm/hardware/iop3xx-adma.h b/include/asm-arm/hardware/iop3xx-adma.h index a32b86a..af64676 100644 --- a/include/asm-arm/hardware/iop3xx-adma.h +++ b/include/asm-arm/hardware/iop3xx-adma.h @@ -260,7 +260,7 @@ static inline int iop_chan_memset_slot_count(size_t len, int *slots_per_op) static inline int iop3xx_aau_xor_slot_count(size_t len, int src_cnt, int *slots_per_op) { - static const int slot_count_table[] = { 0, + static const char slot_count_table[] = { 1, 1, 1, 1, /* 01 - 04 */ 2, 2, 2, 2, /* 05 - 08 */ 4, 4, 4, 4, /* 09 - 12 */ @@ -270,7 +270,7 @@ static inline int iop3xx_aau_xor_slot_count(size_t len, int src_cnt, 8, 8, 8, 8, /* 25 - 28 */ 8, 8, 8, 8, /* 29 - 32 */ }; - *slots_per_op = slot_count_table[src_cnt]; + *slots_per_op = slot_count_table[src_cnt - 1]; return *slots_per_op; } |