diff options
author | Asai Thambi S P <asamymuthupa@micron.com> | 2012-05-29 21:44:01 -0400 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2012-05-31 02:46:50 -0400 |
commit | 377b8fc6d70aab90ccfc053630c65835defbc3f8 (patch) | |
tree | df4480f4d5c0a60dfe535e1ae916bc5ae53f36c5 /drivers/block | |
parent | e602878fd89dab0af2af995a6bef0fbe97b20dc8 (diff) |
mtip32xx: minor performance tweak
When checking for command completions if the register value is zero, proceed
to next register.
Signed-off-by: Asai Thambi S P <asamymuthupa@micron.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/block')
-rw-r--r-- | drivers/block/mtip32xx/mtip32xx.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/block/mtip32xx/mtip32xx.c b/drivers/block/mtip32xx/mtip32xx.c index cd271d5e1b73..29735316730a 100644 --- a/drivers/block/mtip32xx/mtip32xx.c +++ b/drivers/block/mtip32xx/mtip32xx.c | |||
@@ -970,6 +970,8 @@ static inline void mtip_process_sdbf(struct driver_data *dd) | |||
970 | /* walk all bits in all slot groups */ | 970 | /* walk all bits in all slot groups */ |
971 | for (group = 0; group < dd->slot_groups; group++) { | 971 | for (group = 0; group < dd->slot_groups; group++) { |
972 | completed = readl(port->completed[group]); | 972 | completed = readl(port->completed[group]); |
973 | if (!completed) | ||
974 | continue; | ||
973 | 975 | ||
974 | /* clear completed status register in the hardware.*/ | 976 | /* clear completed status register in the hardware.*/ |
975 | writel(completed, port->completed[group]); | 977 | writel(completed, port->completed[group]); |