aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-arm/hardware
diff options
context:
space:
mode:
authorDan Williams <dan.j.williams@intel.com>2008-07-17 17:59:56 -0700
committerDan Williams <dan.j.williams@intel.com>2008-07-17 17:59:56 -0700
commit2a46fa13d788364c093c4296fe01cae837aa8919 (patch)
treebb158cad1ef0bc701a1fcb90a526cee9c1d63d66 /include/asm-arm/hardware
parentiop_adma: document how to calculate the minimum descriptor pool size (diff)
downloadlinux-dev-2a46fa13d788364c093c4296fe01cae837aa8919.tar.xz
linux-dev-2a46fa13d788364c093c4296fe01cae837aa8919.zip
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 '')
-rw-r--r--include/asm-arm/hardware/iop3xx-adma.h4
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 a32b86ac62aa..af64676650a2 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;
}